1{
2 lib,
3 buildPythonPackage,
4 fetchPypi,
5 pycryptodome,
6 python-kasa,
7 pythonOlder,
8 requests,
9 rtp,
10 setuptools,
11 urllib3,
12}:
13
14buildPythonPackage rec {
15 pname = "pytapo";
16 version = "3.3.49";
17 pyproject = true;
18
19 disabled = pythonOlder "3.7";
20
21 src = fetchPypi {
22 inherit pname version;
23 hash = "sha256-urAGAcSoJ8AkHHIPEBEfk08Y34URVN/sX0N4WkIcUR4=";
24 };
25
26 build-system = [ setuptools ];
27
28 dependencies = [
29 pycryptodome
30 python-kasa
31 requests
32 rtp
33 urllib3
34 ];
35
36 pythonImportsCheck = [ "pytapo" ];
37
38 # Tests require actual hardware
39 doCheck = false;
40
41 meta = with lib; {
42 description = "Python library for communication with Tapo Cameras";
43 homepage = "https://github.com/JurajNyiri/pytapo";
44 license = with licenses; [ mit ];
45 maintainers = with maintainers; [ fleaz ];
46 };
47}