Skip to content

Commit 7cfecb1

Browse files
authored
python312Packages.blosc2: make torch tests optional, enabled by default (#383173)
2 parents 47bcb8d + 5cf57e1 commit 7cfecb1

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

pkgs/development/python-modules/blosc2/default.nix

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
{
22
lib,
3+
stdenv,
34
buildPythonPackage,
45
fetchFromGitHub,
56

@@ -24,6 +25,8 @@
2425
# tests
2526
psutil,
2627
pytestCheckHook,
28+
torch,
29+
runTorchTests ? lib.meta.availableOn stdenv.hostPlatform torch,
2730
}:
2831

2932
buildPythonPackage rec {
@@ -68,7 +71,7 @@ buildPythonPackage rec {
6871
nativeCheckInputs = [
6972
psutil
7073
pytestCheckHook
71-
];
74+
] ++ lib.optionals runTorchTests [ torch ];
7275

7376
disabledTests = [
7477
# RuntimeError: Error while getting the slice

0 commit comments

Comments
 (0)