diff --git a/pkgs/development/python-modules/pyportainer/default.nix b/pkgs/development/python-modules/pyportainer/default.nix new file mode 100644 index 000000000000..aa22c41e24fb --- /dev/null +++ b/pkgs/development/python-modules/pyportainer/default.nix @@ -0,0 +1,53 @@ +{ + aiohttp, + aresponses, + buildPythonPackage, + fetchFromGitHub, + lib, + mashumaro, + orjson, + poetry-core, + pytest-cov-stub, + pytestCheckHook, + syrupy, + yarl, +}: + +buildPythonPackage rec { + pname = "pyportainer"; + version = "1.0.1"; + pyproject = true; + + src = fetchFromGitHub { + owner = "erwindouna"; + repo = "pyportainer"; + tag = "v${version}"; + hash = "sha256-SAHcIP6M4WjWnrRwz4FlsV6rel1vHzH+cGHT8D/PcQk="; + }; + + build-system = [ poetry-core ]; + + dependencies = [ + aiohttp + mashumaro + orjson + yarl + ]; + + pythonImportsCheck = [ "pyportainer" ]; + + nativeCheckInputs = [ + aresponses + pytest-cov-stub + pytestCheckHook + syrupy + ]; + + meta = { + changelog = "https://github.com/erwindouna/pyportainer/releases/tag/${src.tag}"; + description = "Asynchronous Python client for the Portainer API"; + homepage = "https://github.com/erwindouna/pyportainer"; + license = lib.licenses.mit; + maintainers = [ lib.maintainers.dotlambda ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index cb45c286334a..ea5e9d5358a6 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -13805,6 +13805,8 @@ self: super: with self; { pyporscheconnectapi = callPackage ../development/python-modules/pyporscheconnectapi { }; + pyportainer = callPackage ../development/python-modules/pyportainer { }; + pyppeteer = callPackage ../development/python-modules/pyppeteer { }; pyppmd = callPackage ../development/python-modules/pyppmd { };