1{ lib
2, aiohttp
3, aiosqlite
4, asynctest
5, buildPythonPackage
6, crccheck
7, fetchFromGitHub
8, pycryptodome
9, pytest-aiohttp
10, pytest-timeout
11, pytestCheckHook
12, pythonOlder
13, voluptuous
14}:
15
16buildPythonPackage rec {
17 pname = "zigpy";
18 version = "0.39.0";
19
20 src = fetchFromGitHub {
21 owner = "zigpy";
22 repo = "zigpy";
23 rev = version;
24 sha256 = "sha256-cR63xzx62ZKCXJENoksJTwEU8vGL8HtdIN3+5OqIL1Y=";
25 };
26
27 propagatedBuildInputs = [
28 aiohttp
29 aiosqlite
30 crccheck
31 pycryptodome
32 voluptuous
33 ];
34
35 checkInputs = [
36 pytest-aiohttp
37 pytest-timeout
38 pytestCheckHook
39 ] ++ lib.optionals (pythonOlder "3.8") [
40 asynctest
41 ];
42
43 disabledTests = [
44 # RuntimeError: coroutine 'test_remigrate_forcibly_downgraded_v4' was never awaited
45 #"test_remigrate_forcibly_downgraded_v4"
46 # RuntimeError: Event loop is closed
47 #"test_startup"
48 ];
49
50 pythonImportsCheck = [
51 "zigpy.application"
52 "zigpy.config"
53 "zigpy.exceptions"
54 "zigpy.types"
55 "zigpy.zcl"
56 ];
57
58 meta = with lib; {
59 description = "Library implementing a ZigBee stack";
60 homepage = "https://github.com/zigpy/zigpy";
61 license = licenses.gpl3Plus;
62 maintainers = with maintainers; [ etu mvnetbiz ];
63 platforms = platforms.linux;
64 };
65}