Merge pull request #51841 from veprbl/pr/pyjet_fix

pythonPackages.pyjet: fix for python37
This commit is contained in:
Dmitry Kalinkin 2018-12-21 16:57:54 -05:00 committed by GitHub
commit 284df60986
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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