summary refs log blame commit diff
path: root/pkgs/development/python-modules/pyjet/default.nix
blob: 4a20b5142b68cb1d23ce141adba30b228bb08cad (plain) (tree)
1
2
3
4
5
6
7
8
9
                                                            


                        
                    


                          
                                                                                

    








                                                









                                                            
{ 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 ];
  };
}