From d570509c20dfa2e0fd62dad98e40aa30eda08b86 Mon Sep 17 00:00:00 2001 From: Weijia Wang <9713184+wegank@users.noreply.github.com> Date: Wed, 13 Mar 2024 16:43:54 +0100 Subject: [PATCH] python312Packages.pepit: init at 0.3.2 --- .../python-modules/pepit/default.nix | 53 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 + 2 files changed, 55 insertions(+) create mode 100644 pkgs/development/python-modules/pepit/default.nix diff --git a/pkgs/development/python-modules/pepit/default.nix b/pkgs/development/python-modules/pepit/default.nix new file mode 100644 index 000000000000..37017f445e9e --- /dev/null +++ b/pkgs/development/python-modules/pepit/default.nix @@ -0,0 +1,53 @@ +{ + lib, + buildPythonPackage, + fetchFromGitHub, + setuptools, + cvxpy, + numpy, + pandas, + scipy, + matplotlib, + pytestCheckHook, +}: + +buildPythonPackage rec { + pname = "pepit"; + version = "0.3.2"; + pyproject = true; + + src = fetchFromGitHub { + owner = "PerformanceEstimation"; + repo = "PEPit"; + rev = version; + hash = "sha256-Gdymdfi0Iv9KXBNSbAEWGYIQ4k5EONnbyWs+99L5D/A="; + }; + + build-system = [ + setuptools + ]; + + dependencies = [ + cvxpy + numpy + pandas + scipy + matplotlib + ]; + + nativeCheckInputs = [ + pytestCheckHook + ]; + + pythonImportsCheck = [ + "PEPit" + ]; + + meta = { + description = "Performance Estimation in Python"; + changelog = "https://pepit.readthedocs.io/en/latest/whatsnew/${version}.html"; + homepage = "https://pepit.readthedocs.io/"; + license = lib.licenses.mit; + maintainers = with lib.maintainers; [ wegank ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 6b2ffb630301..cd09e3f6de35 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -9888,6 +9888,8 @@ self: super: with self; { pep8-naming = callPackage ../development/python-modules/pep8-naming { }; + pepit = callPackage ../development/python-modules/pepit { }; + peppercorn = callPackage ../development/python-modules/peppercorn { }; percol = callPackage ../development/python-modules/percol { };