nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 57 lines 1.1 kB view raw
1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 cmake, 6 setuptools, 7 setuptools-scm, 8 numpy, 9 pybind11, 10 wheel, 11 pytestCheckHook, 12 graphviz, 13}: 14 15buildPythonPackage rec { 16 pname = "pyhepmc"; 17 version = "2.16.1"; 18 pyproject = true; 19 20 src = fetchFromGitHub { 21 owner = "scikit-hep"; 22 repo = "pyhepmc"; 23 tag = version; 24 hash = "sha256-FMxcebZikZXwgEW3BIlHtDVQPweN8zBku0K8FOmF6vA="; 25 fetchSubmodules = true; 26 }; 27 28 nativeBuildInputs = [ 29 cmake 30 setuptools 31 setuptools-scm 32 wheel 33 ]; 34 35 buildInputs = [ pybind11 ]; 36 37 propagatedBuildInputs = [ numpy ]; 38 39 dontUseCmakeConfigure = true; 40 41 CMAKE_ARGS = [ "-DEXTERNAL_PYBIND11=ON" ]; 42 43 nativeCheckInputs = [ 44 graphviz 45 pytestCheckHook 46 ]; 47 48 pythonImportsCheck = [ "pyhepmc" ]; 49 50 meta = { 51 description = "Easy-to-use Python bindings for HepMC3"; 52 homepage = "https://github.com/scikit-hep/pyhepmc"; 53 changelog = "https://github.com/scikit-hep/pyhepmc/releases/tag/${src.tag}"; 54 license = lib.licenses.bsd3; 55 maintainers = with lib.maintainers; [ veprbl ]; 56 }; 57}