1{
2 lib,
3 aiohttp,
4 aiomqtt,
5 buildPythonPackage,
6 fetchFromGitHub,
7 pydantic,
8 pythonOlder,
9 setuptools,
10 tenacity,
11}:
12
13buildPythonPackage rec {
14 pname = "yolink-api";
15 version = "0.5.8";
16 pyproject = true;
17
18 disabled = pythonOlder "3.7";
19
20 src = fetchFromGitHub {
21 owner = "YoSmart-Inc";
22 repo = "yolink-api";
23 tag = "v${version}";
24 hash = "sha256-lIwslGErlMGAu8BzM2gt1vVcaWy7S3Rqw7ce+qvQ+WU=";
25 };
26
27 build-system = [ setuptools ];
28
29 dependencies = [
30 aiohttp
31 aiomqtt
32 pydantic
33 tenacity
34 ];
35
36 # Module has no tests
37 doCheck = false;
38
39 pythonImportsCheck = [ "yolink" ];
40
41 meta = with lib; {
42 description = "Library to interface with Yolink";
43 homepage = "https://github.com/YoSmart-Inc/yolink-api";
44 changelog = "https://github.com/YoSmart-Inc/yolink-api/releases/tag/${src.tag}";
45 license = licenses.mit;
46 maintainers = with maintainers; [ fab ];
47 };
48}