Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib
2, asynctest
3, buildPythonPackage
4, click
5, click-log
6, fetchFromGitHub
7, pure-pcapy3
8, pyserial-asyncio
9, pytest-asyncio
10, pytest-timeout
11, pytestCheckHook
12, pythonOlder
13, voluptuous
14, zigpy
15}:
16
17buildPythonPackage rec {
18 pname = "bellows";
19 version = "0.34.5";
20 format = "setuptools";
21
22 disabled = pythonOlder "3.7";
23
24 src = fetchFromGitHub {
25 owner = "zigpy";
26 repo = "bellows";
27 rev = "refs/tags/${version}";
28 hash = "sha256-GJG3rmJoBxDrqzsNY2r1cEywRfB4tlLn2DDsaDEI3Bo=";
29 };
30
31 propagatedBuildInputs = [
32 click
33 click-log
34 pure-pcapy3
35 pyserial-asyncio
36 voluptuous
37 zigpy
38 ];
39
40 checkInputs = [
41 pytestCheckHook
42 pytest-asyncio
43 pytest-timeout
44 ] ++ lib.optionals (pythonOlder "3.8") [
45 asynctest
46 ];
47
48 pythonImportsCheck = [
49 "bellows"
50 ];
51
52 meta = with lib; {
53 description = "Python module to implement EZSP for EmberZNet devices";
54 homepage = "https://github.com/zigpy/bellows";
55 changelog = "https://github.com/zigpy/bellows/releases/tag/${version}";
56 license = licenses.gpl3Plus;
57 maintainers = with maintainers; [ mvnetbiz ];
58 };
59}