python3Packages.aioswitcher: init at 1.2.2

This commit is contained in:
Fabian Affolter 2021-01-14 23:30:19 +01:00 committed by Jonathan Ringer
parent 03a818a6f8
commit 6b14b6cfa8
2 changed files with 47 additions and 0 deletions

View File

@ -0,0 +1,45 @@
{ lib
, aiohttp
, asynctest
, buildPythonPackage
, fetchFromGitHub
, poetry
, pytest-aiohttp
, pytest-asyncio
, pytest-sugar
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "aioswitcher";
version = "1.2.2";
format = "pyproject";
src = fetchFromGitHub {
owner = "TomerFi";
repo = pname;
rev = version;
sha256 = "0wvca1jbyj4bwrpkpklbxnkvdp9zs7mrvg5b9vkx2hpyr81vyxam";
};
nativeBuildInputs = [ poetry ];
propagatedBuildInputs = [ aiohttp ];
checkInputs = [
asynctest
pytest-aiohttp
pytest-asyncio
pytest-sugar
pytestCheckHook
];
pythonImportsCheck = [ "aioswitcher" ];
meta = with lib; {
description = "Python module to interact with Switcher water heater";
homepage = "https://github.com/TomerFi/aioswitcher";
license = with licenses; [ mit ];
maintainers = with maintainers; [ fab ];
};
}

View File

@ -272,6 +272,8 @@ in {
aiostream = callPackage ../development/python-modules/aiostream { };
aioswitcher = callPackage ../development/python-modules/aioswitcher { };
aiounifi = callPackage ../development/python-modules/aiounifi { };
aiounittest = callPackage ../development/python-modules/aiounittest { };