Skip to content

Commit

Permalink
python312Packages.nanobind: 2.1.0 -> 2.2.0 (#358621)
Browse files Browse the repository at this point in the history
  • Loading branch information
GaetanLepage authored Nov 29, 2024
2 parents 6f48feb + 9f9553e commit 564e219
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions pkgs/development/python-modules/nanobind/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -27,14 +27,14 @@
}:
buildPythonPackage rec {
pname = "nanobind";
version = "2.1.0";
version = "2.2.0";
pyproject = true;

src = fetchFromGitHub {
owner = "wjakob";
repo = "nanobind";
rev = "refs/tags/v${version}";
hash = "sha256-AO/EHx2TlXidalhPb+xuUchaek4ki7fDExu2foBgUp0=";
hash = "sha256-HtZfpMVz/7VMVrFg48IkitK6P3tA+swOeaLLiKguXXk=";
fetchSubmodules = true;
};

Expand All @@ -59,6 +59,13 @@ buildPythonPackage rec {
dontUseCmakeBuildDir = true;

preCheck = ''
# TODO: added 2.2.0, re-enable on next bump
# https://github.com/wjakob/nanobind/issues/754
# "generated stubs do not match their references"
# > -import tensorflow.python.framework.ops
# > +import tensorflow
rm tests/test_ndarray_ext.pyi.ref
# build tests
make -j $NIX_BUILD_CORES
'';
Expand Down

0 comments on commit 564e219

Please sign in to comment.