From 86df68185d628a9f22ea4eb06a64042257ea9ee7 Mon Sep 17 00:00:00 2001 From: Gaetan Lepage Date: Wed, 21 Aug 2024 08:20:57 +0200 Subject: [PATCH] python312Packages.correctionlib: 2.6.1 -> 2.6.4 Diff: https://github.com/cms-nanoAOD/correctionlib/compare/refs/tags/v2.6.1...v2.6.4 Changelog: https://github.com/cms-nanoAOD/correctionlib/releases/tag/v2.6.4 --- .../development/python-modules/correctionlib/default.nix | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/correctionlib/default.nix b/pkgs/development/python-modules/correctionlib/default.nix index 91e9c603e13b..e3d52128ab2d 100644 --- a/pkgs/development/python-modules/correctionlib/default.nix +++ b/pkgs/development/python-modules/correctionlib/default.nix @@ -26,14 +26,14 @@ buildPythonPackage rec { pname = "correctionlib"; - version = "2.6.1"; + version = "2.6.4"; pyproject = true; src = fetchFromGitHub { owner = "cms-nanoAOD"; repo = "correctionlib"; rev = "refs/tags/v${version}"; - hash = "sha256-mfNSETMjhLoa3MK7zPggz568j1T6ay42cKa1GGKKfT8="; + hash = "sha256-l+JjW/giGzU00z0jBN3D4KB/LjTIxeJb3CS+Ge0gbiA="; fetchSubmodules = true; }; @@ -64,6 +64,11 @@ buildPythonPackage rec { 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"; mainProgram = "correction";