diff --git a/pkgs/development/python-modules/scikit-fmm/default.nix b/pkgs/development/python-modules/scikit-fmm/default.nix index ef2f73c33b2c..f7fac9f6394f 100644 --- a/pkgs/development/python-modules/scikit-fmm/default.nix +++ b/pkgs/development/python-modules/scikit-fmm/default.nix @@ -18,18 +18,18 @@ buildPythonPackage rec { hash = "sha256-q6hqteXv600iH7xpCKHgRLkJYSpy9hIf/QnlsYI+jh4="; }; - postPatch = '' - substituteInPlace pyproject.toml \ - --replace-fail "oldest-supported-numpy" "numpy" - ''; - build-system = [ meson-python ]; dependencies = [ numpy ]; checkPhase = '' + runHook preCheck + # "Do not run the tests from the source directory" mkdir testdir; cd testdir - ${python.interpreter} -c "import skfmm, sys; sys.exit(skfmm.test())" + (set -x + ${python.interpreter} -c "import skfmm, sys; sys.exit(skfmm.test())" + ) + runHook postCheck ''; meta = with lib; {