My personal project and infrastructure archive
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
nomicon/pkgs/development/python-modules/pyjet/default.nix

34 lines
832 B

{ lib, buildPythonPackage, pythonOlder, fetchFromGitHub, cython, pytest, importlib-resources, numpy }:
buildPythonPackage rec {
pname = "pyjet";
version = "1.8.2";
# tests not included in pypi tarball
src = fetchFromGitHub {
owner = "scikit-hep";
repo = pname;
rev = version;
sha256 = "sha256-0EI/dbanVDvILawnnK/Ce/5n/cD4Fv7VQEZfF9yPQio=";
};
nativeBuildInputs = [ cython ];
propagatedBuildInputs = [
numpy
] ++ lib.optionals (pythonOlder "3.9") [
importlib-resources
];
checkInputs = [ pytest ];
checkPhase = ''
mv pyjet _pyjet
pytest tests/
'';
meta = with lib; {
homepage = "https://github.com/scikit-hep/pyjet";
description = "The interface between FastJet and NumPy";
license = licenses.gpl2Plus;
maintainers = with maintainers; [ veprbl ];
};
}