python310Packages.python-homewizard-energy: init at 1.0.3

This commit is contained in:
Fabian Affolter 2022-06-01 21:47:11 +02:00
parent a78bc4244e
commit de459b2bf2
2 changed files with 53 additions and 0 deletions

View File

@ -0,0 +1,51 @@
{ lib
, aiohttp
, aresponses
, buildPythonPackage
, fetchFromGitHub
, poetry-core
, protobuf
, pytest-asyncio
, pytestCheckHook
, pythonOlder
}:
buildPythonPackage rec {
pname = "python-homewizard-energy";
version = "1.0.3";
format = "pyproject";
disabled = pythonOlder "3.9";
src = fetchFromGitHub {
owner = "DCSBL";
repo = pname;
rev = "v${version}";
hash = "sha256-ioISqRFZZCojTJ/KYS8QUtoEpBNOPqY9lC9NFbZyh5A=";
};
nativeBuildInputs = [
poetry-core
];
propagatedBuildInputs = [
aiohttp
];
checkInputs = [
aresponses
pytest-asyncio
pytestCheckHook
];
pythonImportsCheck = [
"homewizard_energy"
];
meta = with lib; {
description = "Library to communicate with HomeWizard Energy devices";
homepage = "https://github.com/DCSBL/python-homewizard-energy";
license = licenses.asl20;
maintainers = with maintainers; [ fab ];
};
}

View File

@ -8439,6 +8439,8 @@ in {
python-hglib = callPackage ../development/python-modules/python-hglib { };
python-homewizard-energy = callPackage ../development/python-modules/python-homewizard-energy { };
python-hosts = callPackage ../development/python-modules/python-hosts { };
python-hpilo = callPackage ../development/python-modules/python-hpilo { };