diff options
author | GaƩtan Lepage <33058747+GaetanLepage@users.noreply.github.com> | 2024-06-22 14:57:46 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-06-22 08:57:46 -0400 |
commit | 8c86a4678076e22d8e83186545a604d74f221dd1 (patch) | |
tree | b51194846ad1aa444cb63433565b6272a16e1b64 /pkgs/development | |
parent | 216444a2293461e75d08b58641525c012f59cf19 (diff) |
python311Packages.correctionlib: 2.5.0 -> 2.6.0 (#321537)
Diff: https://github.com/cms-nanoAOD/correctionlib/compare/v2.5.0...v2.6.0 Changelog: https://github.com/cms-nanoAOD/correctionlib/releases/tag/v2.6.0
Diffstat (limited to 'pkgs/development')
-rw-r--r-- | pkgs/development/python-modules/correctionlib/default.nix | 38 |
1 files changed, 24 insertions, 14 deletions
diff --git a/pkgs/development/python-modules/correctionlib/default.nix b/pkgs/development/python-modules/correctionlib/default.nix index 1485a42320202..a4f745f63caae 100644 --- a/pkgs/development/python-modules/correctionlib/default.nix +++ b/pkgs/development/python-modules/correctionlib/default.nix @@ -1,34 +1,43 @@ { lib, buildPythonPackage, - fetchPypi, + fetchFromGitHub, + + # build-system cmake, - numpy, scikit-build, setuptools, setuptools-scm, - wheel, - packaging, pybind11, + + zlib, + + # dependencies + numpy, + packaging, pydantic, rich, + + # checks awkward, pytestCheckHook, scipy, - zlib, }: buildPythonPackage rec { pname = "correctionlib"; - version = "2.5.0"; + version = "2.6.0"; pyproject = true; - src = fetchPypi { - inherit pname version; - hash = "sha256-H8QCdU6piBdqJEJOGVbsz+6eyMhFVuwTpIHKUoKaf4A="; + src = fetchFromGitHub { + owner = "cms-nanoAOD"; + repo = "correctionlib"; + rev = "refs/tags/v${version}"; + hash = "sha256-RI0wL+/6aNCV9PZMY9ZLNFLVYPm9kAyxcvLzLLM/T3Y="; + fetchSubmodules = true; }; - nativeBuildInputs = [ + build-system = [ cmake scikit-build setuptools @@ -38,7 +47,7 @@ buildPythonPackage rec { buildInputs = [ zlib ]; - propagatedBuildInputs = [ + dependencies = [ numpy packaging pydantic @@ -55,11 +64,12 @@ buildPythonPackage rec { pythonImportsCheck = [ "correctionlib" ]; - meta = with lib; { + 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/"; - license = with licenses; [ bsd3 ]; - maintainers = with maintainers; [ veprbl ]; + changelog = "https://github.com/cms-nanoAOD/correctionlib/releases/tag/v${version}"; + license = with lib.licenses; [ bsd3 ]; + maintainers = with lib.maintainers; [ veprbl ]; }; } |