1{ lib
2, buildPythonPackage
3, fetchFromGitHub
4, pyserial
5, pyserial-asyncio
6, pytest-asyncio
7, pytestCheckHook
8, pythonOlder
9, zigpy
10}:
11
12buildPythonPackage rec {
13 pname = "zigpy-deconz";
14 version = "0.21.0";
15 format = "setuptools";
16
17 disabled = pythonOlder "3.7";
18
19 src = fetchFromGitHub {
20 owner = "zigpy";
21 repo = pname;
22 rev = "refs/tags/${version}";
23 hash = "sha256-/XsCQt3JHiPrXJH8w2zDmaMQBLWgcmkbj9RooVYuFw0=";
24 };
25
26 propagatedBuildInputs = [
27 pyserial
28 pyserial-asyncio
29 zigpy
30 ];
31
32 nativeCheckInputs = [
33 pytest-asyncio
34 pytestCheckHook
35 ];
36
37 pythonImportsCheck = [
38 "zigpy_deconz"
39 ];
40
41 meta = with lib; {
42 description = "Library which communicates with Deconz radios for zigpy";
43 homepage = "https://github.com/zigpy/zigpy-deconz";
44 changelog = "https://github.com/zigpy/zigpy-deconz/releases/tag/${version}";
45 license = licenses.gpl3Plus;
46 maintainers = with maintainers; [ mvnetbiz ];
47 platforms = platforms.linux;
48 };
49}