nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
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-asyncio
29 zigpy
30 ];
31
32 checkInputs = [
33 asynctest
34 pytest-asyncio
35 pytestCheckHook
36 ];
37
38 disabledTests = [
39 "test_incoming_msg"
40 "test_incoming_msg2"
41 "test_deser"
42 ];
43
44 meta = with lib; {
45 description = "A library which communicates with Texas Instruments CC2531 radios for zigpy";
46 homepage = "https://github.com/zigpy/zigpy-cc";
47 license = licenses.gpl3Plus;
48 maintainers = with maintainers; [ etu mvnetbiz ];
49 platforms = platforms.linux;
50 };
51}