nixpkgs-suyu/pkgs/development/python-modules/pyjet/default.nix

31 lines
747 B
Nix
Raw Normal View History

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";
2019-10-24 08:47:44 +02:00
version = "1.5.0";
2018-09-23 22:40:29 +02:00
src = fetchPypi {
inherit pname version;
2019-10-24 08:47:44 +02:00
sha256 = "b334fb9a01854165629d49a2df43c81c880fc231a8a27c156beccf42f223fe47";
2018-09-23 22:40:29 +02:00
};
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 ];
};
}