Skip to content

Commit

Permalink
python311Packages.correctionlib: 2.5.0 -> 2.6.0
Browse files Browse the repository at this point in the history
  • Loading branch information
GaetanLepage committed Jun 21, 2024
1 parent c80fa31 commit 2e049b3
Showing 1 changed file with 24 additions and 14 deletions.
38 changes: 24 additions & 14 deletions pkgs/development/python-modules/correctionlib/default.nix
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -38,7 +47,7 @@ buildPythonPackage rec {

buildInputs = [ zlib ];

propagatedBuildInputs = [
dependencies = [
numpy
packaging
pydantic
Expand All @@ -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 ];
};
}

0 comments on commit 2e049b3

Please sign in to comment.