mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-06 04:53:27 +00:00
6263b303cf
Diff: https://github.com/cms-nanoAOD/correctionlib/compare/refs/tags/v2.6.0...v2.6.1 Changelog: https://github.com/cms-nanoAOD/correctionlib/releases/tag/v2.6.1
76 lines
1.3 KiB
Nix
76 lines
1.3 KiB
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
|
|
# build-system
|
|
cmake,
|
|
scikit-build,
|
|
setuptools,
|
|
setuptools-scm,
|
|
pybind11,
|
|
|
|
zlib,
|
|
|
|
# dependencies
|
|
numpy,
|
|
packaging,
|
|
pydantic,
|
|
rich,
|
|
|
|
# checks
|
|
awkward,
|
|
pytestCheckHook,
|
|
scipy,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "correctionlib";
|
|
version = "2.6.1";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "cms-nanoAOD";
|
|
repo = "correctionlib";
|
|
rev = "refs/tags/v${version}";
|
|
hash = "sha256-mfNSETMjhLoa3MK7zPggz568j1T6ay42cKa1GGKKfT8=";
|
|
fetchSubmodules = true;
|
|
};
|
|
|
|
build-system = [
|
|
cmake
|
|
scikit-build
|
|
setuptools
|
|
setuptools-scm
|
|
pybind11
|
|
];
|
|
|
|
buildInputs = [ zlib ];
|
|
|
|
dependencies = [
|
|
numpy
|
|
packaging
|
|
pydantic
|
|
rich
|
|
];
|
|
|
|
dontUseCmakeConfigure = true;
|
|
|
|
nativeCheckInputs = [
|
|
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";
|
|
mainProgram = "correction";
|
|
homepage = "https://cms-nanoaod.github.io/correctionlib/";
|
|
changelog = "https://github.com/cms-nanoAOD/correctionlib/releases/tag/v${version}";
|
|
license = with lib.licenses; [ bsd3 ];
|
|
maintainers = with lib.maintainers; [ veprbl ];
|
|
};
|
|
}
|