1{ lib, buildPythonPackage, fetchPypi, cython, nose, numpy }:
2
3buildPythonPackage rec {
4 pname = "pyjet";
5 version = "1.4.0";
6
7 src = fetchPypi {
8 inherit pname version;
9 sha256 = "89ce11cd4541fb573d68fd60a219e5e1bdeb94cfcfffc917b472fde2aa9a5a31";
10 };
11
12 # fix for python37
13 # https://github.com/scikit-hep/pyjet/issues/8
14 nativeBuildInputs = [ cython ];
15 preBuild = ''
16 for f in pyjet/src/*.{pyx,pxd}; do
17 cython --cplus "$f"
18 done
19 '';
20
21 propagatedBuildInputs = [ numpy ];
22 checkInputs = [ nose ];
23
24 meta = with lib; {
25 homepage = "https://github.com/scikit-hep/pyjet";
26 description = "The interface between FastJet and NumPy";
27 license = licenses.gpl3;
28 maintainers = with maintainers; [ veprbl ];
29 };
30}