diff --git a/pkgs/development/python-modules/validphys2/default.nix b/pkgs/development/python-modules/validphys2/default.nix new file mode 100644 index 000000000000..d434cbcc621c --- /dev/null +++ b/pkgs/development/python-modules/validphys2/default.nix @@ -0,0 +1,37 @@ +{ 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 ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 54af7f573f8d..c3f45fb31678 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -33171,6 +33171,8 @@ with pkgs; shtns = callPackage ../applications/science/physics/shtns { }; + validphys2 = with python3Packages; toPythonApplication validphys2; + xfitter = callPackage ../applications/science/physics/xfitter {}; xflr5 = libsForQt5.callPackage ../applications/science/physics/xflr5 { }; diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 94fed32d9423..f4111cd175f3 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -10776,6 +10776,8 @@ in { validobj = callPackage ../development/python-modules/validobj { }; + validphys2 = callPackage ../development/python-modules/validphys2 { }; + vallox-websocket-api = callPackage ../development/python-modules/vallox-websocket-api { }; variants = callPackage ../development/python-modules/variants { };