1{ lib
2, asynctest
3, buildPythonPackage
4, fetchFromGitHub
5, pyserial
6, pyserial-asyncio
7, pytest-asyncio
8, pytestCheckHook
9, pythonOlder
10, zigpy }:
11
12buildPythonPackage rec {
13 pname = "zigpy-cc";
14 version = "0.5.2";
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-cc";
23 rev = version;
24 sha256 = "U3S8tQ3zPlexZDt5GvCd+rOv7CBVeXJJM1NGe7nRl2o=";
25 };
26
27 propagatedBuildInputs = [
28 pyserial
29 pyserial-asyncio
30 zigpy
31 ];
32
33 checkInputs = [
34 asynctest
35 pytest-asyncio
36 pytestCheckHook
37 ];
38
39 meta = with lib; {
40 description = "A library which communicates with Texas Instruments CC2531 radios for zigpy";
41 homepage = "https://github.com/zigpy/zigpy-cc";
42 license = licenses.gpl3Plus;
43 maintainers = with maintainers; [ etu mvnetbiz ];
44 platforms = platforms.linux;
45 };
46}