2021-04-08 16:26:57 +00:00
|
|
|
{ lib
|
|
|
|
, aiohttp
|
|
|
|
, aioresponses
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, pyjwt
|
|
|
|
, pytestCheckHook
|
|
|
|
, pythonOlder
|
|
|
|
, yarl
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "homepluscontrol";
|
2021-10-11 16:52:03 +00:00
|
|
|
version = "0.1";
|
2021-04-08 16:26:57 +00:00
|
|
|
disabled = pythonOlder "3.6";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "chemaaa";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2021-10-11 16:52:03 +00:00
|
|
|
sha256 = "sha256-COOGqfYiR4tueQHXuCvVxShrYS0XNltcW4mclbFWcfA=";
|
2021-04-08 16:26:57 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
aiohttp
|
|
|
|
pyjwt
|
|
|
|
yarl
|
|
|
|
];
|
|
|
|
|
|
|
|
checkInputs = [
|
|
|
|
aioresponses
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
|
|
|
|
|
|
|
pythonImportsCheck = [ "homepluscontrol" ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Python API to interact with the Legrand Eliot Home and Control";
|
|
|
|
homepage = "https://github.com/chemaaa/homepluscontrol";
|
|
|
|
license = with licenses; [ gpl3Only ];
|
|
|
|
maintainers = with maintainers; [ fab ];
|
|
|
|
};
|
|
|
|
}
|