2ce5db779a
GitOrigin-RevId: 48037fd90426e44e4bf03e6479e88a11453b9b66
37 lines
695 B
Nix
37 lines
695 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, nnpdf
|
|
, reportengine
|
|
}:
|
|
|
|
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 = [
|
|
nnpdf
|
|
reportengine
|
|
];
|
|
|
|
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 ];
|
|
};
|
|
}
|