blob: c5e6e3196104df9a14778329d4fd64454e855b3f (
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
|
{
lib,
buildPythonPackage,
fetchPypi,
pycryptodome,
python-kasa,
requests,
rtp,
setuptools,
urllib3,
}:
buildPythonPackage rec {
pname = "pytapo";
version = "3.3.54";
pyproject = true;
src = fetchPypi {
inherit pname version;
hash = "sha256-B31PTYqXFzLkn/YuFbq0G7SDA1wMqAcwGOaj3xfmxYA=";
};
build-system = [ setuptools ];
dependencies = [
pycryptodome
python-kasa
requests
rtp
urllib3
];
pythonImportsCheck = [ "pytapo" ];
# Tests require actual hardware
doCheck = false;
meta = {
description = "Python library for communication with Tapo Cameras";
homepage = "https://github.com/JurajNyiri/pytapo";
changelog = "https://github.com/JurajNyiri/pytapo/releases/tag/${version}";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ fleaz ];
};
}
|