lol
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

python312Packages.correctionlib: 2.6.4 -> 2.7.0

Diff: https://github.com/cms-nanoAOD/correctionlib/compare/refs/tags/v2.6.4...refs/tags/v2.7.0

Changelog: https://github.com/cms-nanoAOD/correctionlib/releases/tag/v2.7.0

+21 -28
+21 -28
pkgs/development/python-modules/correctionlib/default.nix
··· 2 2 lib, 3 3 buildPythonPackage, 4 4 fetchFromGitHub, 5 - fetchpatch, 6 5 7 6 # build-system 7 + pybind11, 8 + scikit-build-core, 9 + setuptools-scm, 10 + 11 + # nativeBuildInputs 8 12 cmake, 9 - scikit-build, 10 - setuptools, 11 - setuptools-scm, 12 - pybind11, 13 + ninja, 13 14 15 + # buildInputs 14 16 zlib, 15 17 16 18 # dependencies ··· 19 21 pydantic, 20 22 rich, 21 23 22 - # checks 24 + # tests 25 + addBinToPathHook, 23 26 awkward, 24 27 pytestCheckHook, 25 28 scipy, ··· 27 30 28 31 buildPythonPackage rec { 29 32 pname = "correctionlib"; 30 - version = "2.6.4"; 33 + version = "2.7.0"; 31 34 pyproject = true; 32 35 33 36 src = fetchFromGitHub { 34 37 owner = "cms-nanoAOD"; 35 38 repo = "correctionlib"; 36 39 tag = "v${version}"; 37 - hash = "sha256-l+JjW/giGzU00z0jBN3D4KB/LjTIxeJb3CS+Ge0gbiA="; 38 40 fetchSubmodules = true; 41 + hash = "sha256-aLTeyDOo80p8xzl/IPnpT3BOjS2qOYn/Z7pidcLoEY8="; 39 42 }; 40 43 41 - patches = [ 42 - # fix https://github.com/Tencent/rapidjson/issues/2277 43 - (fetchpatch { 44 - url = "https://github.com/Tencent/rapidjson/pull/719.diff"; 45 - hash = "sha256-xarSfi9o73KoJo0ijT0G8fyTSYVuY0+9rLEtfUwas0Q="; 46 - extraPrefix = "rapidjson/"; 47 - stripLen = 1; 48 - }) 44 + build-system = [ 45 + pybind11 46 + scikit-build-core 47 + setuptools-scm 49 48 ]; 50 49 51 - build-system = [ 50 + nativeBuildInputs = [ 52 51 cmake 53 - scikit-build 54 - setuptools 55 - setuptools-scm 56 - pybind11 52 + ninja 57 53 ]; 54 + dontUseCmakeConfigure = true; 58 55 59 56 buildInputs = [ zlib ]; 60 57 ··· 65 62 rich 66 63 ]; 67 64 68 - dontUseCmakeConfigure = true; 69 - 70 65 nativeCheckInputs = [ 66 + # One test requires running the produced `correctionlib` binary 67 + addBinToPathHook 68 + 71 69 awkward 72 70 pytestCheckHook 73 71 scipy 74 72 ]; 75 73 76 74 pythonImportsCheck = [ "correctionlib" ]; 77 - 78 - # One test requires running the produced `correctionlib` binary 79 - preCheck = '' 80 - export PATH=$out/bin:$PATH 81 - ''; 82 75 83 76 meta = { 84 77 description = "Provides a well-structured JSON data format for a wide variety of ad-hoc correction factors encountered in a typical HEP analysis";