2018-12-10 18:31:47 +00:00
|
|
|
{ lib, buildPythonPackage, fetchPypi, cython, nose, numpy }:
|
2018-09-23 21:40:29 +01:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pyjet";
|
2019-02-14 07:37:26 +00:00
|
|
|
version = "1.4.0";
|
2018-09-23 21:40:29 +01:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2019-02-14 07:37:26 +00:00
|
|
|
sha256 = "89ce11cd4541fb573d68fd60a219e5e1bdeb94cfcfffc917b472fde2aa9a5a31";
|
2018-09-23 21:40:29 +01:00
|
|
|
};
|
|
|
|
|
2018-12-10 18:31:47 +00:00
|
|
|
# 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
|
|
|
|
'';
|
|
|
|
|
2018-09-23 21:40:29 +01:00
|
|
|
propagatedBuildInputs = [ numpy ];
|
|
|
|
checkInputs = [ nose ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
homepage = "https://github.com/scikit-hep/pyjet";
|
|
|
|
description = "The interface between FastJet and NumPy";
|
|
|
|
license = licenses.gpl3;
|
|
|
|
maintainers = with maintainers; [ veprbl ];
|
|
|
|
};
|
|
|
|
}
|