1{ lib
2, asynctest
3, buildPythonPackage
4, fetchFromGitHub
5, pyserial
6, pyserial-asyncio
7, pytest-asyncio
8, pytestCheckHook
9, pythonOlder
10, zigpy
11}:
12
13buildPythonPackage rec {
14 pname = "zigpy-xbee";
15 version = "0.14.0";
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-xbee";
24 rev = version;
25 sha256 = "sha256-veAkaBHPYgVd3iwvnH/A2upYX4T/qXXNRcaysbRQvNI=";
26 };
27
28 buildInputs = [
29 pyserial
30 pyserial-asyncio
31 zigpy
32 ];
33
34 checkInputs = [
35 asynctest
36 pytest-asyncio
37 pytestCheckHook
38 ];
39
40 disabledTests = [
41 # assertion failure
42 # E assert ff:ff:ff:ff:ff:ff:ff:ff is None
43 "test_startup_api_mode_config_fails"
44 ];
45
46 meta = with lib; {
47 description = "A library which communicates with XBee radios for zigpy";
48 homepage = "https://github.com/zigpy/zigpy-xbee";
49 license = licenses.gpl3Plus;
50 maintainers = with maintainers; [ etu mvnetbiz ];
51 platforms = platforms.linux;
52 };
53}