mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-19 02:44:17 +03:00
fa1d382bd6
Those are needed for the report generation.
48 lines
821 B
Nix
48 lines
821 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 ];
|
|
};
|
|
}
|