depot/third_party/nixpkgs/pkgs/development/python-modules/validphys2/default.nix
Default email fa5436e0a7 Project import generated by Copybara.
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
2024-06-05 17:53:02 +02:00

48 lines
832 B
Nix

{
lib,
buildPythonPackage,
lhapdf,
nnpdf,
prompt-toolkit,
reportengine,
requests,
seaborn,
validobj,
}:
buildPythonPackage rec {
pname = "validphys2";
version = "4.0";
format = "setuptools";
inherit (nnpdf) src;
prePatch = ''
cd validphys2
'';
postPatch = ''
substituteInPlace src/validphys/version.py \
--replace '= __give_git()' '= "'$version'"'
'';
propagatedBuildInputs = [
lhapdf
nnpdf
prompt-toolkit
reportengine
requests
seaborn
validobj
];
doCheck = false; # no tests
pythonImportsCheck = [ "validphys" ];
meta = with lib; {
description = "NNPDF analysis framework";
homepage = "https://data.nnpdf.science/validphys-docs/guide.html";
inherit (nnpdf.meta) license;
maintainers = with maintainers; [ veprbl ];
};
}