python313Packages.nanobind: disable check phase by default

This commit is contained in:
Sigmanificient
2025-03-28 15:04:05 +01:00
parent 393056823f
commit dca06b8c2c
@@ -22,6 +22,8 @@
tensorflow-bin,
jax,
jaxlib,
nanobind,
}:
buildPythonPackage rec {
pname = "nanobind";
@@ -49,6 +51,11 @@ buildPythonPackage rec {
dontUseCmakeBuildDir = true;
# nanobind check requires heavy dependencies such as tensorflow
# which are less than ideal to be imported in children packages that
# use it as build-system parameter.
doCheck = false;
preCheck = ''
# TODO: added 2.2.0, re-enable on next bump
# https://github.com/wjakob/nanobind/issues/754
@@ -74,6 +81,10 @@ buildPythonPackage rec {
jaxlib
];
passthru.tests = {
pytest = nanobind.overridePythonAttrs { doCheck = true; };
};
meta = {
homepage = "https://github.com/wjakob/nanobind";
changelog = "https://github.com/wjakob/nanobind/blob/${src.tag}/docs/changelog.rst";