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