1{ lib
2, aiohttp
3, aioresponses
4, async-timeout
5, buildPythonPackage
6, fetchFromGitHub
7, orjson
8, pytest-aiohttp
9, pytestCheckHook
10, pythonOlder
11}:
12
13buildPythonPackage rec {
14 pname = "pydeconz";
15 version = "113";
16 format = "setuptools";
17
18 disabled = pythonOlder "3.9";
19
20 src = fetchFromGitHub {
21 owner = "Kane610";
22 repo = "deconz";
23 rev = "refs/tags/v${version}";
24 hash = "sha256-Vf3nYUopaGY5JK//rqqsz47VRHwql1cQcslYbkH3owQ=";
25 };
26
27 propagatedBuildInputs = [
28 aiohttp
29 async-timeout
30 orjson
31 ];
32
33 nativeCheckInputs = [
34 aioresponses
35 pytest-aiohttp
36 pytestCheckHook
37 ];
38
39 pythonImportsCheck = [
40 "pydeconz"
41 ];
42
43 meta = with lib; {
44 description = "Python library wrapping the Deconz REST API";
45 homepage = "https://github.com/Kane610/deconz";
46 changelog = "https://github.com/Kane610/deconz/releases/tag/v${version}";
47 license = with licenses; [ mit ];
48 maintainers = with maintainers; [ fab ];
49 };
50}