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