2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
lhapdf,
|
|
|
|
nnpdf,
|
|
|
|
prompt-toolkit,
|
|
|
|
reportengine,
|
|
|
|
requests,
|
|
|
|
seaborn,
|
|
|
|
validobj,
|
2022-05-18 14:49:53 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "validphys2";
|
|
|
|
version = "4.0";
|
|
|
|
format = "setuptools";
|
|
|
|
|
|
|
|
inherit (nnpdf) src;
|
|
|
|
|
|
|
|
prePatch = ''
|
|
|
|
cd validphys2
|
|
|
|
'';
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace src/validphys/version.py \
|
2023-02-16 17:41:37 +00:00
|
|
|
--replace '= __give_git()' '= "'$version'"'
|
2022-05-18 14:49:53 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
2022-06-16 17:23:12 +00:00
|
|
|
lhapdf
|
2022-05-18 14:49:53 +00:00
|
|
|
nnpdf
|
2022-06-16 17:23:12 +00:00
|
|
|
prompt-toolkit
|
2022-05-18 14:49:53 +00:00
|
|
|
reportengine
|
2022-06-16 17:23:12 +00:00
|
|
|
requests
|
|
|
|
seaborn
|
|
|
|
validobj
|
2022-05-18 14:49:53 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|