mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-28 22:32:58 +03:00
pythonPackages.numexpr: fix darwin build by refactoring checkPhase
This fixes a following error on python 3.8: FileNotFoundError: [Errno 2] No such file or directory: '/nix/store/0s7kw66pav5c7bi38lb0gznxnxz31a1n-python3.8-numexpr-2.7.1/<stdin>'
This commit is contained in:
parent
4af55b773f
commit
c184c87571
@ -21,17 +21,10 @@ buildPythonPackage rec {
|
|||||||
|
|
||||||
propagatedBuildInputs = [ numpy ];
|
propagatedBuildInputs = [ numpy ];
|
||||||
|
|
||||||
# Run the test suite.
|
|
||||||
# It requires the build path to be in the python search path.
|
|
||||||
checkPhase = ''
|
checkPhase = ''
|
||||||
pushd $out
|
runtest="$(pwd)/numexpr/tests/test_numexpr.py"
|
||||||
${python}/bin/${python.executable} <<EOF
|
pushd "$out"
|
||||||
import sys
|
${python}/bin/${python.executable} "$runtest"
|
||||||
import numexpr
|
|
||||||
r = numexpr.test()
|
|
||||||
if not r.wasSuccessful():
|
|
||||||
sys.exit(1)
|
|
||||||
EOF
|
|
||||||
popd
|
popd
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user