nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at 22.05 37 lines 695 B view raw
1{ lib 2, buildPythonPackage 3, nnpdf 4, reportengine 5}: 6 7buildPythonPackage rec { 8 pname = "validphys2"; 9 version = "4.0"; 10 format = "setuptools"; 11 12 inherit (nnpdf) src; 13 14 prePatch = '' 15 cd validphys2 16 ''; 17 18 postPatch = '' 19 substituteInPlace src/validphys/version.py \ 20 --replace '= __give_git()' '= "${version}"' 21 ''; 22 23 propagatedBuildInputs = [ 24 nnpdf 25 reportengine 26 ]; 27 28 doCheck = false; # no tests 29 pythonImportsCheck = [ "validphys" ]; 30 31 meta = with lib; { 32 description = "NNPDF analysis framework"; 33 homepage = "https://data.nnpdf.science/validphys-docs/guide.html"; 34 inherit (nnpdf.meta) license; 35 maintainers = with maintainers; [ veprbl ]; 36 }; 37}