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