Commit 5cf57e19 authored by Kirill Radzikhovskyy's avatar Kirill Radzikhovskyy
Browse files

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



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

Co-authored-by: default avatarNick Cao <nickcao@nichi.co>
parent 47bcb8da
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
{
  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