2018-12-10 19:31:47 +01:00
|
|
|
{ lib, buildPythonPackage, fetchPypi, cython, nose, numpy }:
|
2018-09-23 22:40:29 +02:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pyjet";
|
|
|
|
version = "1.3.0";
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
|
|
|
sha256 = "1glcwv9ni8i40smfw6m456xjadlkackim5nk33xmas1fa96lpagg";
|
|
|
|
};
|
|
|
|
|
2018-12-10 19:31:47 +01: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 22:40:29 +02: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 ];
|
|
|
|
};
|
|
|
|
}
|