depot/third_party/nixpkgs/pkgs/development/python-modules/pyjet/default.nix
Default email 8ac5e011d6 Project import generated by Copybara.
GitOrigin-RevId: 2c3273caa153ee8eb5786bc8141b85b859e7efd7
2020-04-24 19:36:52 -04:00

30 lines
747 B
Nix

{ lib, buildPythonPackage, fetchPypi, cython, nose, numpy }:
buildPythonPackage rec {
pname = "pyjet";
version = "1.5.0";
src = fetchPypi {
inherit pname version;
sha256 = "b334fb9a01854165629d49a2df43c81c880fc231a8a27c156beccf42f223fe47";
};
# 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 ];
};
}