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
60
61
|
{
lib,
buildPythonPackage,
fetchFromGitHub,
certifi,
scapy,
urllib3,
semantic-version,
aiohttp,
jsons,
requests,
# Test inputs
pytestCheckHook,
pyyaml,
pytest-asyncio,
async-timeout,
}:
buildPythonPackage rec {
pname = "plugp100";
version = "5.1.4";
src = fetchFromGitHub {
owner = "petretiandrea";
repo = "plugp100";
tag = version;
sha256 = "sha256-a/Rv5imVJOJNaLzPozK8+XMZZsR5HyIXbCmq2Flkd+I=";
};
propagatedBuildInputs = [
certifi
jsons
requests
aiohttp
semantic-version
scapy
urllib3
pyyaml
];
nativeCheckInputs = [
pytestCheckHook
pytest-asyncio
async-timeout
];
disabledTestPaths = [
"tests/integration/"
"tests/unit/hub_child/"
"tests/unit/test_plug_strip.py"
"tests/unit/test_hub.py "
"tests/unit/test_klap_protocol.py"
];
meta = with lib; {
description = "Python library to control Tapo Plug P100 devices";
homepage = "https://github.com/petretiandrea/plugp100";
license = licenses.gpl3;
maintainers = with maintainers; [ pyle ];
};
}
|