2025-08-17 14:22:33 +00:00

76 lines
1.3 KiB
Nix

{
lib,
aiohttp,
aioresponses,
awesomeversion,
buildPythonPackage,
envoy-utils,
fetchFromGitHub,
lxml,
orjson,
poetry-core,
pyjwt,
pytest-asyncio,
pytest-cov-stub,
pytest-timeout,
pytestCheckHook,
pythonOlder,
respx,
syrupy,
tenacity,
}:
buildPythonPackage rec {
pname = "pyenphase";
version = "2.3.1";
pyproject = true;
disabled = pythonOlder "3.11";
src = fetchFromGitHub {
owner = "pyenphase";
repo = "pyenphase";
tag = "v${version}";
hash = "sha256-Z6txaTkIkUTYWVWbsmvoI/huDTZKX5DxePqM5rsmIWY=";
};
pythonRelaxDeps = [ "tenacity" ];
build-system = [ poetry-core ];
dependencies = [
aiohttp
awesomeversion
envoy-utils
lxml
orjson
pyjwt
tenacity
];
nativeCheckInputs = [
aioresponses
pytest-asyncio
pytest-cov-stub
pytest-timeout
pytestCheckHook
respx
syrupy
];
disabledTestPaths = [
# Tests need network access
"tests/test_retries.py"
];
pythonImportsCheck = [ "pyenphase" ];
meta = with lib; {
description = "Library to control enphase envoy";
homepage = "https://github.com/pyenphase/pyenphase";
changelog = "https://github.com/pyenphase/pyenphase/blob/${src.tag}/CHANGELOG.md";
license = licenses.mit;
maintainers = with maintainers; [ fab ];
};
}