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