Merge pull request #175810 from fabaff/python-homewizard-energy

python310Packages.python-homewizard-energy: init at 1.0.3
This commit is contained in:
Martin Weinelt
2022-06-01 22:13:34 +02:00
committed by GitHub
2 changed files with 53 additions and 0 deletions
@@ -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 ];
};
}
+2
View File
@@ -8452,6 +8452,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 { };