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