python: numexpr: 2.6.7 -> 2.6.8
This commit is contained in:
parent
6923bc8d23
commit
99696fb9a0
|
@ -7,11 +7,11 @@
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "numexpr";
|
pname = "numexpr";
|
||||||
version = "2.6.7";
|
version = "2.6.8";
|
||||||
|
|
||||||
src = fetchPypi {
|
src = fetchPypi {
|
||||||
inherit pname version;
|
inherit pname version;
|
||||||
sha256 = "3d007946b6c042fc9feb1db52dd0847d2f9b7f3175ae0591476ea80dcd664771";
|
sha256 = "ee8bc7201aa2f1962c67d27c326a11eef9df887d7b87b1278a1d4e722bf44375";
|
||||||
};
|
};
|
||||||
|
|
||||||
propagatedBuildInputs = [ numpy ];
|
propagatedBuildInputs = [ numpy ];
|
||||||
|
@ -19,20 +19,15 @@ buildPythonPackage rec {
|
||||||
# Run the test suite.
|
# Run the test suite.
|
||||||
# It requires the build path to be in the python search path.
|
# It requires the build path to be in the python search path.
|
||||||
checkPhase = ''
|
checkPhase = ''
|
||||||
|
pushd $out
|
||||||
${python}/bin/${python.executable} <<EOF
|
${python}/bin/${python.executable} <<EOF
|
||||||
import sysconfig
|
|
||||||
import sys
|
import sys
|
||||||
import os
|
|
||||||
f = "lib.{platform}-{version[0]}.{version[1]}"
|
|
||||||
lib = f.format(platform=sysconfig.get_platform(),
|
|
||||||
version=sys.version_info)
|
|
||||||
build = os.path.join(os.getcwd(), 'build', lib)
|
|
||||||
sys.path.insert(0, build)
|
|
||||||
import numexpr
|
import numexpr
|
||||||
r = numexpr.test()
|
r = numexpr.test()
|
||||||
if not r.wasSuccessful():
|
if not r.wasSuccessful():
|
||||||
sys.exit(1)
|
sys.exit(1)
|
||||||
EOF
|
EOF
|
||||||
|
popd
|
||||||
'';
|
'';
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
|
|
Loading…
Reference in New Issue