1{
2 async-timeout,
3 buildPythonPackage,
4 coloredlogs,
5 fetchFromGitHub,
6 jsonschema,
7 lib,
8 pytest-asyncio_0,
9 pytest-mock,
10 pytestCheckHook,
11 setuptools,
12 voluptuous,
13 zigpy,
14}:
15
16buildPythonPackage rec {
17 pname = "zigpy-zboss";
18 version = "1.2.0";
19 pyproject = true;
20
21 src = fetchFromGitHub {
22 owner = "kardia-as";
23 repo = "zigpy-zboss";
24 tag = "v${version}";
25 hash = "sha256-T2R291GeFIsnDRI1tAydTlLamA3LF5tKxKFhPtcEUus=";
26 };
27
28 build-system = [ setuptools ];
29
30 dependencies = [
31 async-timeout
32 coloredlogs
33 jsonschema
34 voluptuous
35 zigpy
36 ];
37
38 pythonImportsCheck = [ "zigpy_zboss" ];
39
40 nativeCheckInputs = [
41 pytest-asyncio_0
42 pytest-mock
43 pytestCheckHook
44 ];
45
46 disabledTestPaths = [
47 # AttributeError: 'Ledvance' object has no attribute 'get'
48 "tests/application/test_connect.py"
49 "tests/application/test_join.py"
50 "tests/application/test_requests.py"
51 "tests/application/test_startup.py"
52 "tests/application/test_zdo_requests.py"
53 "tests/application/test_zigpy_callbacks.py"
54 ];
55
56 meta = {
57 changelog = "https://github.com/kardia-as/zigpy-zboss/releases/tag/v${version}";
58 description = "Library for zigpy which communicates with Nordic nRF52 radios";
59 homepage = "https://github.com/kardia-as/zigpy-zboss";
60 license = lib.licenses.gpl3Plus;
61 maintainers = with lib.maintainers; [ dotlambda ];
62 };
63}