blob: efbced9f3b3214be8cfa33a6dbe593ce76ec8063 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
{ lib, buildPythonPackage, fetchPypi, cython, nose, numpy }:
buildPythonPackage rec {
pname = "pyjet";
version = "1.4.0";
src = fetchPypi {
inherit pname version;
sha256 = "89ce11cd4541fb573d68fd60a219e5e1bdeb94cfcfffc917b472fde2aa9a5a31";
};
# 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 ];
meta = with lib; {
homepage = "https://github.com/scikit-hep/pyjet";
description = "The interface between FastJet and NumPy";
license = licenses.gpl3;
maintainers = with maintainers; [ veprbl ];
};
}
|