diff --git a/pkgs/development/python-modules/ndindex/default.nix b/pkgs/development/python-modules/ndindex/default.nix index ad222111112d..2c8fec5e26d3 100644 --- a/pkgs/development/python-modules/ndindex/default.nix +++ b/pkgs/development/python-modules/ndindex/default.nix @@ -2,6 +2,7 @@ lib, buildPythonPackage, fetchFromGitHub, + python, # build-system cython, @@ -36,15 +37,28 @@ buildPythonPackage rec { postPatch = '' substituteInPlace pytest.ini \ - --replace "--flakes" "" + --replace-fail "--flakes" "" ''; optional-dependencies.arrays = [ numpy ]; pythonImportsCheck = [ "ndindex" ]; + # fix Hypothesis timeouts preCheck = '' cd $out + + echo > ${python.sitePackages}/ndindex/tests/conftest.py <