Merge pull request #307098 from r-ryantm/auto-update/cilium-cli
[NixPkgs.git] / pkgs / development / python-modules / pyhepmc / default.nix
blob1019d573a46e5b7340223ef00864b92928d6ef38
1 { lib
2 , buildPythonPackage
3 , fetchFromGitHub
4 , cmake
5 , setuptools
6 , setuptools-scm
7 , numpy
8 , pybind11
9 , wheel
10 , pytestCheckHook
11 , pythonOlder
12 , graphviz
15 buildPythonPackage rec {
16   pname = "pyhepmc";
17   version = "2.13.2";
18   format = "pyproject";
20   disabled = pythonOlder "3.8";
22   src = fetchFromGitHub {
23     owner = "scikit-hep";
24     repo = pname;
25     rev = "refs/tags/v${version}";
26     hash = "sha256-M18Bq6WrAINpgPx5+uh8dufPBxIklRHpbBWUYMC8v10=";
27     fetchSubmodules = true;
28   };
30   nativeBuildInputs = [
31     cmake
32     setuptools
33     setuptools-scm
34     wheel
35   ];
37   buildInputs = [
38     pybind11
39   ];
41   propagatedBuildInputs = [
42     numpy
43   ];
45   dontUseCmakeConfigure = true;
47   CMAKE_ARGS = [ "-DEXTERNAL_PYBIND11=ON" ];
49   preBuild = ''
50     export CMAKE_BUILD_PARALLEL_LEVEL="$NIX_BUILD_CORES"
51   '';
53   nativeCheckInputs = [
54     graphviz
55     pytestCheckHook
56   ];
58   pythonImportsCheck = [ "pyhepmc" ];
60   meta = with lib; {
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 ];
66   };