blob: df87584f4cecf714a7555aa2b85ddc525077892f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
|
{
lib,
buildPythonPackage,
pythonOlder,
fetchFromGitHub,
setuptools,
aiohttp,
xmltodict,
python-socketio-v4,
websocket-client,
}:
buildPythonPackage rec {
pname = "pycontrol4";
version = "1.5.0";
disabled = pythonOlder "3.11";
pyproject = true;
src = fetchFromGitHub {
owner = "lawtancool";
repo = "pyControl4";
tag = "v${version}";
hash = "sha256-r90v9vy8avvEbNKrzZgYtDS5Z5hV66Fd9fF9XJ4r7B4=";
};
patches = [
# https://github.com/lawtancool/pyControl4/pull/47
./asyncio-timeout.patch
];
build-system = [ setuptools ];
dependencies = [
aiohttp
xmltodict
python-socketio-v4
websocket-client
];
# tests access network
doCheck = false;
pythonImportsCheck = [
"pyControl4.account"
"pyControl4.alarm"
"pyControl4.director"
"pyControl4.light"
];
meta = {
changelog = "https://github.com/lawtancool/pyControl4/releases/tag/v${version}";
description = "Python 3 asyncio package for interacting with Control4 systems";
homepage = "https://github.com/lawtancool/pyControl4";
license = lib.licenses.asl20;
maintainers = with lib.maintainers; [ dotlambda ];
};
}
|