mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-22 06:53:01 +00:00
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:
parent
c53f8b4954
commit
3a731d0d35
@ -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";
|
||||
|
Loading…
Reference in New Issue
Block a user