From bb9720304527d74562563e6e13b042090d704445 Mon Sep 17 00:00:00 2001 From: Jonathan Ringer Date: Tue, 23 Aug 2022 14:43:19 -0700 Subject: [PATCH] python3Packages.plux: init at 1.3.1 --- .../python-modules/plux/default.nix | 38 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 + 2 files changed, 40 insertions(+) create mode 100644 pkgs/development/python-modules/plux/default.nix diff --git a/pkgs/development/python-modules/plux/default.nix b/pkgs/development/python-modules/plux/default.nix new file mode 100644 index 000000000000..70ba8d6b28f0 --- /dev/null +++ b/pkgs/development/python-modules/plux/default.nix @@ -0,0 +1,38 @@ +{ lib +, buildPythonPackage +, fetchFromGitHub +, stevedore +, pytestCheckHook +}: + +buildPythonPackage rec { + pname = "plux"; + version = "1.3.1"; + format = "pyproject"; + + # Tests are not available from PyPi + src = fetchFromGitHub { + owner = "localstack"; + repo = "plux"; + # Request for proper tags: https://github.com/localstack/plux/issues/4 + rev = "a412ab0a0d7d17c3b5e1f560b7b31dc1876598f7"; + sha256 = "sha256-zFwrRc93R4cXah7zYXjVLBIeBpDedsInxuyXOyBI8SA="; + }; + + propagatedBuildInputs = [ + stevedore + ]; + + checkInputs = [ + pytestCheckHook + ]; + + pythonImportsCheck = [ "plugin.core" ]; + + meta = with lib; { + description = "Dynamic code loading framework for building pluggable Python distributions"; + homepage = "https://github.com/localstack/plux"; + license = licenses.asl20; + maintainers = with maintainers; [ jonringer ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 86e4e6944063..60e3ab2ccbc4 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -7059,6 +7059,8 @@ in { plumbum = callPackage ../development/python-modules/plumbum { }; + plux = callPackage ../development/python-modules/plux { }; + ply = callPackage ../development/python-modules/ply { }; plyer = callPackage ../development/python-modules/plyer { };