about summary refs log tree commit diff
diff options
context:
space:
mode:
authorSébastien Maret <sebastien.maret@univ-grenoble-alpes.fr>2023-11-04 16:16:40 +0100
committerSébastien Maret <sebastien.maret@univ-grenoble-alpes.fr>2023-11-04 16:16:40 +0100
commitab7601ac8e2622ebedacc3f9fc799a11f494f1f7 (patch)
treead3f979c50e530a4243f49c4184fa0af6adad0b9
parent8f61d05a8dd5a91ea5a622b278dfdef40e90fdda (diff)
python3Packages.spectral-cube: fix tests
-rw-r--r--pkgs/development/python-modules/spectral-cube/default.nix7
1 files changed, 5 insertions, 2 deletions
diff --git a/pkgs/development/python-modules/spectral-cube/default.nix b/pkgs/development/python-modules/spectral-cube/default.nix
index 84ec039e4eae4..98132c9f17d34 100644
--- a/pkgs/development/python-modules/spectral-cube/default.nix
+++ b/pkgs/development/python-modules/spectral-cube/default.nix
@@ -46,6 +46,11 @@ buildPythonPackage rec {
     pytestCheckHook
   ];
 
+  # Tests must be run in the build directory.
+  preCheck = ''
+    cd build/lib
+  '';
+
   # On x86_darwin, this test fails with "Fatal Python error: Aborted"
   # when sandbox = true.
   disabledTestPaths = lib.optionals stdenv.isDarwin [
@@ -62,7 +67,5 @@ buildPythonPackage rec {
     changelog = "https://github.com/radio-astro-tools/spectral-cube/releases/tag/v${version}";
     license = licenses.bsd3;
     maintainers = with maintainers; [ smaret ];
-    # Tests fail to start, according to Hydra
-    broken = true;
   };
 }