1{ lib
2, buildPythonPackage
3, pythonOlder
4, fetchFromGitHub
5, aiohttp
6, xmltodict
7}:
8
9buildPythonPackage rec {
10 pname = "pycontrol4";
11 version = "0.3.1";
12
13 disabled = pythonOlder "3.6";
14
15 src = fetchFromGitHub {
16 owner = "lawtancool";
17 repo = "pyControl4";
18 rev = "v${version}";
19 sha256 = "068iiyi17ndv6cv124r5dzvififblbi2zw7jgnzb5xi0q093czkj";
20 };
21
22 propagatedBuildInputs = [
23 aiohttp
24 xmltodict
25 ];
26
27 # tests access network
28 doCheck = false;
29
30 pythonImportsCheck = [
31 "pyControl4.account"
32 "pyControl4.alarm"
33 "pyControl4.director"
34 "pyControl4.light"
35 ];
36
37 meta = with lib; {
38 description = "Python 3 asyncio package for interacting with Control4 systems";
39 homepage = "https://github.com/lawtancool/pyControl4";
40 license = licenses.asl20;
41 maintainers = with maintainers; [ dotlambda ];
42 };
43}