blob: 36c15f79825ab3b46541a803e98a602cbcd9afdd (
plain) (
blame)
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
|
{ lib
, buildPythonPackage
, fetchFromGitHub
# build-system
, setuptools
# dependencies
, cryptography
, requests
, colorama
}:
buildPythonPackage rec {
pname = "tinytuya";
version = "1.13.2";
pyproject = true;
src = fetchFromGitHub {
owner = "jasonacox";
repo = "tinytuya";
rev = "refs/tags/v${version}";
hash = "sha256-44x5P+Ej/d6B5n53iDuLDBzkeZZvArpcgzXLJBcIJe0=";
};
build-system = [
setuptools
];
dependencies = [
cryptography
requests
colorama
];
# Tests require real network resources
doCheck = false;
pythonImportsCheck = [
"tinytuya"
];
meta = with lib; {
description = "Python API for Tuya WiFi smart devices using a direct local area network (LAN) connection or the cloud (TuyaCloud API)";
homepage = "https://github.com/jasonacox/tinytuya";
changelog = "https://github.com/jasonacox/tinytuya/releases/tag/v${version}";
license = licenses.mit;
maintainers = with maintainers; [ pathob ];
};
}
|