python311Packages.pyenphase: init at 1.9.1
https://github.com/pyenphase/pyenphase
This commit is contained in:
parent
1f8b5a2795
commit
618e9a86e1
70
pkgs/development/python-modules/pyenphase/default.nix
Normal file
70
pkgs/development/python-modules/pyenphase/default.nix
Normal 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 ];
|
||||
};
|
||||
}
|
@ -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 { };
|
||||
|
Loading…
Reference in New Issue
Block a user