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
58
59
60
61
62
63
64
|
{ lib
, buildPythonPackage
, fetchPypi
, cmake
, numpy
, scikit-build
, setuptools
, setuptools-scm
, pybind11
, pydantic
, pytestCheckHook
, rich
, scipy
, zlib
}:
buildPythonPackage rec {
pname = "correctionlib";
version = "2.2.2";
format = "pyproject";
src = fetchPypi {
inherit pname version;
hash = "sha256-h3eggtPLSF/8ShQ5xzowZW1KSlcI/YBsPu3lsSyzHkw=";
};
nativeBuildInputs = [
cmake
numpy
scikit-build
setuptools
setuptools-scm
pybind11
];
buildInputs = [
zlib
];
propagatedBuildInputs = [
pydantic
rich
];
dontUseCmakeConfigure = true;
SETUPTOOLS_SCM_PRETEND_VERSION = version;
nativeCheckInputs = [
pytestCheckHook
scipy
];
pythonImportsCheck = [
"correctionlib"
];
meta = with lib; {
description = "Provides a well-structured JSON data format for a wide variety of ad-hoc correction factors encountered in a typical HEP analysis";
homepage = "https://cms-nanoaod.github.io/correctionlib/";
license = with licenses; [ bsd3 ];
maintainers = with maintainers; [ veprbl ];
};
}
|