![Martin Weinelt](/assets/img/avatar_default.png)
The setuptools-scm packages gained a setup hook, that sets it to the derivation version automatically, so setting it to that manually has become redundant. This also affects downstream consumers of setuptools-scm, like hatch-vcs or flit-scm.
68 lines
1.1 KiB
Nix
68 lines
1.1 KiB
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, cmake
|
|
, numpy
|
|
, scikit-build
|
|
, setuptools
|
|
, setuptools-scm
|
|
, wheel
|
|
, pybind11
|
|
, pydantic
|
|
, rich
|
|
, awkward
|
|
, pytestCheckHook
|
|
, scipy
|
|
, zlib
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "correctionlib";
|
|
version = "2.4.0";
|
|
pyproject = true;
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
hash = "sha256-bQKcS8vktvD62zvSeaBtoJw36TSpo0gEpKm0HI3AuXg=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
cmake
|
|
numpy
|
|
scikit-build
|
|
setuptools
|
|
setuptools-scm
|
|
wheel
|
|
pybind11
|
|
];
|
|
|
|
buildInputs = [
|
|
zlib
|
|
];
|
|
|
|
propagatedBuildInputs = [
|
|
pydantic
|
|
rich
|
|
];
|
|
|
|
dontUseCmakeConfigure = true;
|
|
|
|
nativeCheckInputs = [
|
|
awkward
|
|
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 ];
|
|
broken = versionAtLeast pydantic.version "2";
|
|
};
|
|
}
|