@@ -0,0 +1,37 @@
1+{ stdenv, buildPythonPackage, fetchPypi
2+, click, click-log, pure-pcapy3
3+, pyserial, pyserial-asyncio, voluptuous, zigpy
4+, asynctest, pytest, pytest-asyncio }:
5+
6+let
7+ pname = "bellows";
8+ version = "0.17.0";
9+
10+in buildPythonPackage rec {
11+ inherit pname version;
12+
13+ src = fetchPypi {
14+ inherit pname version;
15+ sha256 = "03gckhrxji8lgjsi6xr8yql405kfanii5hjrmakk1328bmq9g5f6";
16+ };
17+
18+ propagatedBuildInputs = [
19+ click click-log pure-pcapy3 pyserial pyserial-asyncio voluptuous zigpy
20+ ];
21+
22+ checkInputs = [
23+ asynctest pytest pytest-asyncio
24+ ];
25+
26+ prePatch = ''
27+ substituteInPlace setup.py \
28+ --replace "click-log==0.2.0" "click-log>=0.2.0"
29+ '';
30+
31+ meta = with stdenv.lib; {
32+ description = "A Python 3 project to implement EZSP for EmberZNet devices";
33+ homepage = "https://github.com/zigpy/bellows";
34+ license = licenses.gpl3Plus;
35+ maintainers = with maintainers; [ etu mvnetbiz ];
36+ };
37+}