at master 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 pythonOlder, 13 graphviz, 14}: 15 16buildPythonPackage rec { 17 pname = "pyhepmc"; 18 version = "2.14.0"; 19 format = "pyproject"; 20 21 disabled = pythonOlder "3.8"; 22 23 src = fetchFromGitHub { 24 owner = "scikit-hep"; 25 repo = "pyhepmc"; 26 tag = "v${version}"; 27 hash = "sha256-yh02Z1nPGjghZYHkPBlClDEztq4VQsW3H+kuco/lBpk="; 28 fetchSubmodules = true; 29 }; 30 31 nativeBuildInputs = [ 32 cmake 33 setuptools 34 setuptools-scm 35 wheel 36 ]; 37 38 buildInputs = [ pybind11 ]; 39 40 propagatedBuildInputs = [ numpy ]; 41 42 dontUseCmakeConfigure = true; 43 44 CMAKE_ARGS = [ "-DEXTERNAL_PYBIND11=ON" ]; 45 46 nativeCheckInputs = [ 47 graphviz 48 pytestCheckHook 49 ]; 50 51 pythonImportsCheck = [ "pyhepmc" ]; 52 53 meta = with lib; { 54 description = "Easy-to-use Python bindings for HepMC3"; 55 homepage = "https://github.com/scikit-hep/pyhepmc"; 56 changelog = "https://github.com/scikit-hep/pyhepmc/releases/tag/v${version}"; 57 license = licenses.bsd3; 58 maintainers = with maintainers; [ veprbl ]; 59 }; 60}