diff options
Diffstat (limited to 'nixpkgs/pkgs/development/python-modules/numexpr/default.nix')
-rw-r--r-- | nixpkgs/pkgs/development/python-modules/numexpr/default.nix | 13 |
1 files changed, 3 insertions, 10 deletions
diff --git a/nixpkgs/pkgs/development/python-modules/numexpr/default.nix b/nixpkgs/pkgs/development/python-modules/numexpr/default.nix index d0bb0a88cff..3e3316788ed 100644 --- a/nixpkgs/pkgs/development/python-modules/numexpr/default.nix +++ b/nixpkgs/pkgs/development/python-modules/numexpr/default.nix @@ -21,17 +21,10 @@ buildPythonPackage rec { propagatedBuildInputs = [ numpy ]; - # Run the test suite. - # It requires the build path to be in the python search path. checkPhase = '' - pushd $out - ${python}/bin/${python.executable} <<EOF - import sys - import numexpr - r = numexpr.test() - if not r.wasSuccessful(): - sys.exit(1) - EOF + runtest="$(pwd)/numexpr/tests/test_numexpr.py" + pushd "$out" + ${python}/bin/${python.executable} "$runtest" popd ''; |