python3Packages.spectral-cube: fix tests

This commit is contained in:
Sébastien Maret 2023-11-04 16:16:40 +01:00
parent 8f61d05a8d
commit ab7601ac8e

View File

@ -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;
};
}