nixpkgs/pkgs/development/python-modules/pyportainer/default.nix
2026-06-10 08:48:07 +00:00

57 lines
1.1 KiB
Nix

{
aiohttp,
aresponses,
buildPythonPackage,
fetchFromGitHub,
freezegun,
hatchling,
lib,
mashumaro,
orjson,
pytest-cov-stub,
pytestCheckHook,
syrupy,
tenacity,
yarl,
}:
buildPythonPackage (finalAttrs: {
pname = "pyportainer";
version = "1.0.41";
pyproject = true;
src = fetchFromGitHub {
owner = "erwindouna";
repo = "pyportainer";
tag = "v${finalAttrs.version}";
hash = "sha256-pQGObEYmj5Off573wwxLdU6p+kJsGqDyPVPzmD6vCc8=";
};
build-system = [ hatchling ];
dependencies = [
aiohttp
mashumaro
orjson
tenacity
yarl
];
pythonImportsCheck = [ "pyportainer" ];
nativeCheckInputs = [
aresponses
freezegun
pytest-cov-stub
pytestCheckHook
syrupy
];
meta = {
changelog = "https://github.com/erwindouna/pyportainer/releases/tag/${finalAttrs.src.tag}";
description = "Asynchronous Python client for the Portainer API";
homepage = "https://github.com/erwindouna/pyportainer";
license = lib.licenses.mit;
maintainers = [ lib.maintainers.dotlambda ];
};
})