Unverified Commit 7cfecb1f authored by Gaétan Lepage's avatar Gaétan Lepage Committed by GitHub
Browse files

python312Packages.blosc2: make torch tests optional, enabled by default (#383173)

parents 47bcb8da 5cf57e19
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