diff options
Diffstat (limited to 'pkgs/development/python-modules/nanobind/default.nix')
-rw-r--r-- | pkgs/development/python-modules/nanobind/default.nix | 41 |
1 files changed, 24 insertions, 17 deletions
diff --git a/pkgs/development/python-modules/nanobind/default.nix b/pkgs/development/python-modules/nanobind/default.nix index 27460b65a8dba..66df98f351bce 100644 --- a/pkgs/development/python-modules/nanobind/default.nix +++ b/pkgs/development/python-modules/nanobind/default.nix @@ -1,43 +1,50 @@ { lib, buildPythonPackage, - pythonOlder, fetchFromGitHub, + pythonOlder, + + # build-system cmake, - eigen, ninja, - scikit-build, + pathspec, + scikit-build-core, + + # dependencies + eigen, + + # tests pytestCheckHook, numpy, scipy, torch, + tensorflow-bin, jax, jaxlib, - tensorflow, - setuptools, }: buildPythonPackage rec { pname = "nanobind"; - version = "1.9.2"; + version = "2.1.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-AO/EHx2TlXidalhPb+xuUchaek4ki7fDExu2foBgUp0="; fetchSubmodules = true; }; disabled = pythonOlder "3.8"; - nativeBuildInputs = [ + build-system = [ cmake ninja - scikit-build - setuptools + pathspec + scikit-build-core ]; - buildInputs = [ eigen ]; + + dependencies = [ eigen ]; dontUseCmakeBuildDir = true; preCheck = '' @@ -50,12 +57,12 @@ buildPythonPackage rec { numpy scipy torch - tensorflow + tensorflow-bin 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"; @@ -66,7 +73,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 ]; }; } |