From c1cc67a913fd36a1ae6f54e022242ef017610fdb Mon Sep 17 00:00:00 2001 From: Gaetan Lepage Date: Fri, 24 May 2024 00:20:32 +0200 Subject: [PATCH] python311Packages.nanobind: 1.9.2 -> 2.0.0 Diff: https://github.com/wjakob/nanobind/compare/v1.9.2...v2.0.0 Changelog: https://github.com/wjakob/nanobind/blob/v2.0.0/docs/changelog.rst --- .../python-modules/nanobind/default.nix | 23 +++++++++---------- 1 file changed, 11 insertions(+), 12 deletions(-) diff --git a/pkgs/development/python-modules/nanobind/default.nix b/pkgs/development/python-modules/nanobind/default.nix index 9e632ff0f1b2..b02f229ec136 100644 --- a/pkgs/development/python-modules/nanobind/default.nix +++ b/pkgs/development/python-modules/nanobind/default.nix @@ -18,25 +18,26 @@ }: buildPythonPackage rec { pname = "nanobind"; - version = "1.9.2"; + version = "2.0.0"; pyproject = true; src = fetchFromGitHub { owner = "wjakob"; - repo = pname; - rev = "v${version}"; - hash = "sha256-6swDqw7sEYOawQbNWD8VfSQoi+9wjhOhOOwPPkahDas="; + repo = "nanobind"; + rev = "refs/tags/v${version}"; + hash = "sha256-yDFrhSIWywWw7ri5aHRPigi9ujDeazpJa4AVrkLx5BI="; fetchSubmodules = true; }; disabled = pythonOlder "3.8"; - nativeBuildInputs = [ + build-system = [ cmake ninja scikit-build setuptools ]; + buildInputs = [ eigen ]; dontUseCmakeBuildDir = true; @@ -51,13 +52,11 @@ buildPythonPackage rec { scipy torch tensorflow - # Uncomment at next release (1.9.3) - # See https://github.com/wjakob/nanobind/issues/578 - # jax - # jaxlib + jax + jaxlib ]; - meta = with lib; { + meta = { homepage = "https://github.com/wjakob/nanobind"; changelog = "https://github.com/wjakob/nanobind/blob/${src.rev}/docs/changelog.rst"; description = "Tiny and efficient C++/Python bindings"; @@ -68,7 +67,7 @@ buildPythonPackage rec { more efficient: bindings compile in a shorter amount of time, produce smaller binaries, and have better runtime performance. ''; - license = licenses.bsd3; - maintainers = with maintainers; [ parras ]; + license = lib.licenses.bsd3; + maintainers = with lib.maintainers; [ parras ]; }; }