nixpkgs/pkgs/development/python-modules/pyenphase/default.nix
2026-06-27 02:51:58 +00:00

74 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,
python-jsonpath,
respx,
syrupy,
tenacity,
}:
buildPythonPackage (finalAttrs: {
pname = "pyenphase";
version = "3.0.0";
pyproject = true;
src = fetchFromGitHub {
owner = "pyenphase";
repo = "pyenphase";
tag = "v${finalAttrs.version}";
hash = "sha256-yc9Klsaly4+eMM6v3NFMc948drq/Wum8ILfdTCNJx/c=";
};
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
python-jsonpath
respx
syrupy
];
disabledTestPaths = [
# Tests need network access
"tests/test_retries.py"
];
pythonImportsCheck = [ "pyenphase" ];
meta = {
description = "Library to control enphase envoy";
homepage = "https://github.com/pyenphase/pyenphase";
changelog = "https://github.com/pyenphase/pyenphase/blob/${finalAttrs.src.tag}/CHANGELOG.md";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ fab ];
};
})