forked from mirrors/nixpkgs
pythonPackages.pyjet: fix for python37
This commit is contained in:
parent
703827f36c
commit
da24df963e
|
@ -1,4 +1,4 @@
|
|||
{ lib, buildPythonPackage, fetchPypi, nose, numpy }:
|
||||
{ lib, buildPythonPackage, fetchPypi, cython, nose, numpy }:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "pyjet";
|
||||
|
@ -9,6 +9,15 @@ buildPythonPackage rec {
|
|||
sha256 = "1glcwv9ni8i40smfw6m456xjadlkackim5nk33xmas1fa96lpagg";
|
||||
};
|
||||
|
||||
# fix for python37
|
||||
# https://github.com/scikit-hep/pyjet/issues/8
|
||||
nativeBuildInputs = [ cython ];
|
||||
preBuild = ''
|
||||
for f in pyjet/src/*.{pyx,pxd}; do
|
||||
cython --cplus "$f"
|
||||
done
|
||||
'';
|
||||
|
||||
propagatedBuildInputs = [ numpy ];
|
||||
checkInputs = [ nose ];
|
||||
|
||||
|
|
Loading…
Reference in a new issue