1{ lib
2, aiohttp
3, aioresponses
4, buildPythonPackage
5, fetchFromGitHub
6, pyjwt
7, pytestCheckHook
8, pythonOlder
9, yarl
10}:
11
12buildPythonPackage rec {
13 pname = "homepluscontrol";
14 version = "0.1";
15 disabled = pythonOlder "3.6";
16
17 src = fetchFromGitHub {
18 owner = "chemaaa";
19 repo = pname;
20 rev = version;
21 hash = "sha256-COOGqfYiR4tueQHXuCvVxShrYS0XNltcW4mclbFWcfA=";
22 };
23
24 propagatedBuildInputs = [
25 aiohttp
26 pyjwt
27 yarl
28 ];
29
30 nativeCheckInputs = [
31 aioresponses
32 pytestCheckHook
33 ];
34
35 pythonImportsCheck = [ "homepluscontrol" ];
36
37 meta = with lib; {
38 description = "Python API to interact with the Legrand Eliot Home and Control";
39 homepage = "https://github.com/chemaaa/homepluscontrol";
40 license = with licenses; [ gpl3Only ];
41 maintainers = with maintainers; [ fab ];
42 };
43}