python312Packages.correctionlib: 2.6.4 -> 2.7.0

Diff: https://github.com/cms-nanoAOD/correctionlib/compare/refs/tags/v2.6.4...refs/tags/v2.7.0

Changelog: https://github.com/cms-nanoAOD/correctionlib/releases/tag/v2.7.0

Changed files
+21 -28
pkgs
development
python-modules
correctionlib
+21 -28
pkgs/development/python-modules/correctionlib/default.nix
···
lib,
buildPythonPackage,
fetchFromGitHub,
-
fetchpatch,
# build-system
cmake,
-
scikit-build,
-
setuptools,
-
setuptools-scm,
-
pybind11,
zlib,
# dependencies
···
pydantic,
rich,
-
# checks
awkward,
pytestCheckHook,
scipy,
···
buildPythonPackage rec {
pname = "correctionlib";
-
version = "2.6.4";
pyproject = true;
src = fetchFromGitHub {
owner = "cms-nanoAOD";
repo = "correctionlib";
tag = "v${version}";
-
hash = "sha256-l+JjW/giGzU00z0jBN3D4KB/LjTIxeJb3CS+Ge0gbiA=";
fetchSubmodules = true;
};
-
patches = [
-
# fix https://github.com/Tencent/rapidjson/issues/2277
-
(fetchpatch {
-
url = "https://github.com/Tencent/rapidjson/pull/719.diff";
-
hash = "sha256-xarSfi9o73KoJo0ijT0G8fyTSYVuY0+9rLEtfUwas0Q=";
-
extraPrefix = "rapidjson/";
-
stripLen = 1;
-
})
];
-
build-system = [
cmake
-
scikit-build
-
setuptools
-
setuptools-scm
-
pybind11
];
buildInputs = [ zlib ];
···
rich
];
-
dontUseCmakeConfigure = true;
-
nativeCheckInputs = [
awkward
pytestCheckHook
scipy
];
pythonImportsCheck = [ "correctionlib" ];
-
-
# One test requires running the produced `correctionlib` binary
-
preCheck = ''
-
export PATH=$out/bin:$PATH
-
'';
meta = {
description = "Provides a well-structured JSON data format for a wide variety of ad-hoc correction factors encountered in a typical HEP analysis";
···
lib,
buildPythonPackage,
fetchFromGitHub,
# build-system
+
pybind11,
+
scikit-build-core,
+
setuptools-scm,
+
+
# nativeBuildInputs
cmake,
+
ninja,
+
# buildInputs
zlib,
# dependencies
···
pydantic,
rich,
+
# tests
+
addBinToPathHook,
awkward,
pytestCheckHook,
scipy,
···
buildPythonPackage rec {
pname = "correctionlib";
+
version = "2.7.0";
pyproject = true;
src = fetchFromGitHub {
owner = "cms-nanoAOD";
repo = "correctionlib";
tag = "v${version}";
fetchSubmodules = true;
+
hash = "sha256-aLTeyDOo80p8xzl/IPnpT3BOjS2qOYn/Z7pidcLoEY8=";
};
+
build-system = [
+
pybind11
+
scikit-build-core
+
setuptools-scm
];
+
nativeBuildInputs = [
cmake
+
ninja
];
+
dontUseCmakeConfigure = true;
buildInputs = [ zlib ];
···
rich
];
nativeCheckInputs = [
+
# One test requires running the produced `correctionlib` binary
+
addBinToPathHook
+
awkward
pytestCheckHook
scipy
];
pythonImportsCheck = [ "correctionlib" ];
meta = {
description = "Provides a well-structured JSON data format for a wide variety of ad-hoc correction factors encountered in a typical HEP analysis";