mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-07-06 17:13:24 -05:00
57 lines
1.1 KiB
Nix
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 ];
|
|
};
|
|
})
|