python312Packages.nanobind: reenable checks on x86_64-darwin (#355191)

This patch reenables all checks except the ones depending on tensorflow
and jax for x64_64-darwin. They have been disabled because
tensorflow-bin is not available on x64_64-darwin (#327844). However,
this was overkill. The nanobind tests themselves check if tensorflow is
available or not and skip the respective test cases.
This commit is contained in:
phiadaarr 2024-11-13 23:30:08 +01:00 committed by GitHub
parent c53f8b4954
commit 3a731d0d35
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -53,17 +53,18 @@ buildPythonPackage rec {
make -j $NIX_BUILD_CORES
'';
# skip testing on platforms disabled for tensorflow-bin
doCheck = !(builtins.elem stdenv.hostPlatform.system tensorflow-bin.meta.badPlatforms);
nativeCheckInputs = [
pytestCheckHook
numpy
scipy
torch
tensorflow-bin
jax
jaxlib
];
nativeCheckInputs =
[
pytestCheckHook
numpy
scipy
torch
]
++ lib.optionals (!(builtins.elem stdenv.hostPlatform.system tensorflow-bin.meta.badPlatforms)) [
tensorflow-bin
jax
jaxlib
];
meta = {
homepage = "https://github.com/wjakob/nanobind";