1
0
Fork 0
mirror of https://github.com/NixOS/nixpkgs.git synced 2025-06-30 13:05:15 +03:00
nixpkgs/pkgs/development/python-modules/pyjet/default.nix

31 lines
725 B
Nix
Raw Normal View History

{ lib, buildPythonPackage, fetchFromGitHub, cython, pytest, numpy }:
2018-09-23 16:40:29 -04:00
buildPythonPackage rec {
pname = "pyjet";
2021-10-26 01:52:46 -04:00
version = "1.8.2";
2018-09-23 16:40:29 -04:00
# tests not included in pypi tarball
src = fetchFromGitHub {
owner = "scikit-hep";
repo = pname;
rev = version;
2021-10-26 01:52:46 -04:00
sha256 = "sha256-0EI/dbanVDvILawnnK/Ce/5n/cD4Fv7VQEZfF9yPQio=";
2018-09-23 16:40:29 -04:00
};
2018-12-10 13:31:47 -05:00
nativeBuildInputs = [ cython ];
2018-09-23 16:40:29 -04:00
propagatedBuildInputs = [ numpy ];
2021-10-26 01:52:46 -04:00
checkInputs = [ pytest ];
checkPhase = ''
mv pyjet _pyjet
pytest tests/
'';
2018-09-23 16:40:29 -04:00
meta = with lib; {
homepage = "https://github.com/scikit-hep/pyjet";
description = "The interface between FastJet and NumPy";
2021-10-26 01:52:46 -04:00
license = licenses.gpl2Plus;
2018-09-23 16:40:29 -04:00
maintainers = with maintainers; [ veprbl ];
};
}