python311Packages.pyenphase: init at 1.9.1

https://github.com/pyenphase/pyenphase
This commit is contained in:
Fabian Affolter 2023-09-07 09:54:44 +02:00
parent 1f8b5a2795
commit 618e9a86e1
2 changed files with 72 additions and 0 deletions

View File

@ -0,0 +1,70 @@
{ lib
, awesomeversion
, buildPythonPackage
, envoy-utils
, fetchFromGitHub
, httpx
, lxml
, orjson
, poetry-core
, pyjwt
, pytest-asyncio
, pytestCheckHook
, pythonOlder
, respx
, syrupy
, tenacity
}:
buildPythonPackage rec {
pname = "pyenphase";
version = "1.9.1";
format = "pyproject";
disabled = pythonOlder "3.11";
src = fetchFromGitHub {
owner = "pyenphase";
repo = "pyenphase";
rev = "refs/tags/v${version}";
hash = "sha256-6ThUly9ITs2UMCCBFTyKSNnD5Y87GmBA+iaTjk/mJWw=";
};
postPatch = ''
substituteInPlace pyproject.toml \
--replace " --cov=pyenphase --cov-report=term-missing:skip-covered" ""
'';
nativeBuildInputs = [
poetry-core
];
propagatedBuildInputs = [
awesomeversion
envoy-utils
httpx
lxml
orjson
pyjwt
tenacity
];
nativeCheckInputs = [
pytest-asyncio
pytestCheckHook
respx
syrupy
];
pythonImportsCheck = [
"pyenphase"
];
meta = with lib; {
description = "Library to control enphase envoy";
homepage = "https://github.com/pyenphase/pyenphase";
changelog = "https://github.com/pyenphase/pyenphase/blob/${version}/CHANGELOG.md";
license = licenses.mit;
maintainers = with maintainers; [ fab ];
};
}

View File

@ -9046,6 +9046,8 @@ self: super: with self; {
inherit (pkgs) enchant2;
};
pyenphase = callPackage ../development/python-modules/pyenphase { };
pyenvisalink = callPackage ../development/python-modules/pyenvisalink { };
pyephember = callPackage ../development/python-modules/pyephember { };