pythonPackages.pyjet: fix for python37

This commit is contained in:
Dmitry Kalinkin 2018-12-10 13:31:47 -05:00
parent 703827f36c
commit da24df963e
No known key found for this signature in database
GPG Key ID: 5157B3EC8B2CA333

View File

@ -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 ];