15 buildPythonPackage rec {
20 disabled = pythonOlder "3.8";
22 src = fetchFromGitHub {
25 rev = "refs/tags/v${version}";
26 hash = "sha256-M18Bq6WrAINpgPx5+uh8dufPBxIklRHpbBWUYMC8v10=";
27 fetchSubmodules = true;
41 propagatedBuildInputs = [
45 dontUseCmakeConfigure = true;
47 CMAKE_ARGS = [ "-DEXTERNAL_PYBIND11=ON" ];
50 export CMAKE_BUILD_PARALLEL_LEVEL="$NIX_BUILD_CORES"
58 pythonImportsCheck = [ "pyhepmc" ];
61 description = "Easy-to-use Python bindings for HepMC3";
62 homepage = "https://github.com/scikit-hep/pyhepmc";
63 changelog = "https://github.com/scikit-hep/pyhepmc/releases/tag/v${version}";
64 license = licenses.bsd3;
65 maintainers = with maintainers; [ veprbl ];