1{ 2 aiohttp, 3 aresponses, 4 buildPythonPackage, 5 fetchFromGitHub, 6 lib, 7 mashumaro, 8 orjson, 9 poetry-core, 10 pytest-cov-stub, 11 pytestCheckHook, 12 syrupy, 13 yarl, 14}: 15 16buildPythonPackage rec { 17 pname = "pyportainer"; 18 version = "1.0.1"; 19 pyproject = true; 20 21 src = fetchFromGitHub { 22 owner = "erwindouna"; 23 repo = "pyportainer"; 24 tag = "v${version}"; 25 hash = "sha256-SAHcIP6M4WjWnrRwz4FlsV6rel1vHzH+cGHT8D/PcQk="; 26 }; 27 28 build-system = [ poetry-core ]; 29 30 dependencies = [ 31 aiohttp 32 mashumaro 33 orjson 34 yarl 35 ]; 36 37 pythonImportsCheck = [ "pyportainer" ]; 38 39 nativeCheckInputs = [ 40 aresponses 41 pytest-cov-stub 42 pytestCheckHook 43 syrupy 44 ]; 45 46 meta = { 47 changelog = "https://github.com/erwindouna/pyportainer/releases/tag/${src.tag}"; 48 description = "Asynchronous Python client for the Portainer API"; 49 homepage = "https://github.com/erwindouna/pyportainer"; 50 license = lib.licenses.mit; 51 maintainers = [ lib.maintainers.dotlambda ]; 52 }; 53}