Merge pull request #119126 from fabaff/pycomfoconnect
[NixPkgs.git] / pkgs / development / python-modules / zigpy-zigate / default.nix
blob5ebb17dd498b9641f3e331c073551801f311e19a
1 { lib
2 , asynctest
3 , buildPythonPackage
4 , fetchFromGitHub
5 , pyserial
6 , pyserial-asyncio
7 , pyusb
8 , pytest-asyncio
9 , pytestCheckHook
10 , pythonOlder
11 , zigpy }:
13 buildPythonPackage rec {
14   pname = "zigpy-zigate";
15   version = "0.7.4";
16   # https://github.com/Martiusweb/asynctest/issues/152
17   # broken by upstream python bug with asynctest and
18   # is used exclusively by home-assistant with python 3.8
19   disabled = pythonOlder "3.8";
21   src = fetchFromGitHub {
22     owner = "zigpy";
23     repo = "zigpy-zigate";
24     rev = version;
25     sha256 = "0xl8qgljvmypi602f52m89iv9pcrzsdal3jw619vrcavp40rc04d";
26   };
28   propagatedBuildInputs = [
29     pyserial
30     pyserial-asyncio
31     pyusb
32     zigpy
33   ];
35   checkInputs = [
36     asynctest
37     pytest-asyncio
38     pytestCheckHook
39   ];
41   meta = with lib; {
42     description = "A library which communicates with ZiGate radios for zigpy";
43     homepage = "https://github.com/zigpy/zigpy-zigate";
44     license = licenses.gpl3Plus;
45     maintainers = with maintainers; [ etu mvnetbiz ];
46     platforms = platforms.linux;
47   };