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-xbee";
14 version = "0.19.0";
15 # https://github.com/Martiusweb/asynctest/issues/152
16 # broken by upstream python bug with asynctest and
17 # is used exclusively by home-assistant with python 3.8
18 disabled = pythonOlder "3.8";
19
20 src = fetchFromGitHub {
21 owner = "zigpy";
22 repo = "zigpy-xbee";
23 rev = "refs/tags/${version}";
24 hash = "sha256-KUXXOySuPFNKcW3O08FBYIfm4WwVjOuIF+GefmKnwl0=";
25 };
26
27 buildInputs = [
28 pyserial
29 pyserial-asyncio
30 zigpy
31 ];
32
33 nativeCheckInputs = [
34 pytest-asyncio
35 pytestCheckHook
36 ];
37
38 disabledTests = [
39 # fixed in https://github.com/zigpy/zigpy-xbee/commit/f85233fc28ae01c08267965e99a29e43b00e1561
40 "test_shutdown"
41 ];
42
43 meta = with lib; {
44 changelog = "https://github.com/zigpy/zigpy-xbee/releases/tag/${version}";
45 description = "A library which communicates with XBee radios for zigpy";
46 homepage = "https://github.com/zigpy/zigpy-xbee";
47 license = licenses.gpl3Plus;
48 maintainers = with maintainers; [ mvnetbiz ];
49 platforms = platforms.linux;
50 };
51}