python312Packages.blosc2: make torch tests optional, enabled by default

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

Co-authored-by: Nick Cao <nickcao@nichi.co>
This commit is contained in:
Kirill Radzikhovskyy
2025-02-19 07:20:43 +11:00
parent 47bcb8da9b
commit 5cf57e1969
@@ -1,5 +1,6 @@
{
lib,
stdenv,
buildPythonPackage,
fetchFromGitHub,
@@ -24,6 +25,8 @@
# tests
psutil,
pytestCheckHook,
torch,
runTorchTests ? lib.meta.availableOn stdenv.hostPlatform torch,
}:
buildPythonPackage rec {
@@ -68,7 +71,7 @@ buildPythonPackage rec {
nativeCheckInputs = [
psutil
pytestCheckHook
];
] ++ lib.optionals runTorchTests [ torch ];
disabledTests = [
# RuntimeError: Error while getting the slice