Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 20.09 888 B view raw
1{ lib, buildPythonPackage, fetchFromGitHub, cython, pytest, numpy }: 2 3buildPythonPackage rec { 4 pname = "pyjet"; 5 version = "1.6.0"; 6 7 # tests not included in pypi tarball 8 src = fetchFromGitHub { 9 owner = "scikit-hep"; 10 repo = pname; 11 rev = version; 12 sha256 = "0b68jnbfk2rw9i1nnwsrbrbgkj7r0w1nw0i9f8fah1wmn78k9csv"; 13 }; 14 15 # fix for python37 16 # https://github.com/scikit-hep/pyjet/issues/8 17 nativeBuildInputs = [ cython ]; 18 preBuild = '' 19 for f in pyjet/src/*.{pyx,pxd}; do 20 cython --cplus "$f" 21 done 22 ''; 23 24 propagatedBuildInputs = [ numpy ]; 25 checkInputs = [ pytest ]; 26 checkPhase = '' 27 mv pyjet _pyjet 28 pytest tests/ 29 ''; 30 31 meta = with lib; { 32 homepage = "https://github.com/scikit-hep/pyjet"; 33 description = "The interface between FastJet and NumPy"; 34 license = licenses.gpl3; 35 maintainers = with maintainers; [ veprbl ]; 36 }; 37}