1{ lib
2, asynctest
3, buildPythonPackage
4, fetchFromGitHub
5, pyserial
6, pyserial-asyncio
7, pyusb
8, pytest-asyncio
9, pytestCheckHook
10, pythonOlder
11, zigpy }:
12
13buildPythonPackage rec {
14 pname = "zigpy-zigate";
15 version = "0.7.4";
16 # https://github.com/Martiusweb/asynctest/issues/152
17 # broken by upstream python bug with asynctest and
18 # is used exclusively by home-assistant with python 3.8
19 disabled = pythonOlder "3.8";
20
21 src = fetchFromGitHub {
22 owner = "zigpy";
23 repo = "zigpy-zigate";
24 rev = version;
25 sha256 = "0xl8qgljvmypi602f52m89iv9pcrzsdal3jw619vrcavp40rc04d";
26 };
27
28 propagatedBuildInputs = [
29 pyserial
30 pyserial-asyncio
31 pyusb
32 zigpy
33 ];
34
35 checkInputs = [
36 asynctest
37 pytest-asyncio
38 pytestCheckHook
39 ];
40
41 meta = with lib; {
42 description = "A library which communicates with ZiGate radios for zigpy";
43 homepage = "https://github.com/zigpy/zigpy-zigate";
44 license = licenses.gpl3Plus;
45 maintainers = with maintainers; [ etu mvnetbiz ];
46 platforms = platforms.linux;
47 };
48}