16 buildPythonPackage rec {
21 disabled = pythonOlder "3.8";
23 src = fetchFromGitHub {
26 rev = "refs/tags/v${version}";
27 hash = "sha256-yh02Z1nPGjghZYHkPBlClDEztq4VQsW3H+kuco/lBpk=";
28 fetchSubmodules = true;
38 buildInputs = [ pybind11 ];
40 propagatedBuildInputs = [ numpy ];
42 dontUseCmakeConfigure = true;
44 CMAKE_ARGS = [ "-DEXTERNAL_PYBIND11=ON" ];
47 export CMAKE_BUILD_PARALLEL_LEVEL="$NIX_BUILD_CORES"
55 pythonImportsCheck = [ "pyhepmc" ];
58 description = "Easy-to-use Python bindings for HepMC3";
59 homepage = "https://github.com/scikit-hep/pyhepmc";
60 changelog = "https://github.com/scikit-hep/pyhepmc/releases/tag/v${version}";
61 license = licenses.bsd3;
62 maintainers = with maintainers; [ veprbl ];