27 buildPythonPackage rec {
28 pname = "correctionlib";
32 src = fetchFromGitHub {
33 owner = "cms-nanoAOD";
34 repo = "correctionlib";
35 rev = "refs/tags/v${version}";
36 hash = "sha256-l+JjW/giGzU00z0jBN3D4KB/LjTIxeJb3CS+Ge0gbiA=";
37 fetchSubmodules = true;
48 buildInputs = [ zlib ];
57 dontUseCmakeConfigure = true;
65 pythonImportsCheck = [ "correctionlib" ];
67 # One test requires running the produced `correctionlib` binary
69 export PATH=$out/bin:$PATH
73 description = "Provides a well-structured JSON data format for a wide variety of ad-hoc correction factors encountered in a typical HEP analysis";
74 mainProgram = "correction";
75 homepage = "https://cms-nanoaod.github.io/correctionlib/";
76 changelog = "https://github.com/cms-nanoAOD/correctionlib/releases/tag/v${version}";
77 license = with lib.licenses; [ bsd3 ];
78 maintainers = with lib.maintainers; [ veprbl ];