2020-10-24 15:59:57 +02:00
|
|
|
{ lib
|
|
|
|
, asynctest
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, pyserial
|
|
|
|
, pyserial-asyncio
|
2020-11-19 15:15:00 +01:00
|
|
|
, pyusb
|
2020-10-24 15:59:57 +02:00
|
|
|
, pytest-asyncio
|
|
|
|
, pytestCheckHook
|
|
|
|
, pythonOlder
|
|
|
|
, zigpy }:
|
2020-05-23 22:24:21 +02:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "zigpy-zigate";
|
2021-01-01 22:16:28 +01:00
|
|
|
version = "0.7.4";
|
2020-10-24 15:59:57 +02:00
|
|
|
# https://github.com/Martiusweb/asynctest/issues/152
|
|
|
|
# broken by upstream python bug with asynctest and
|
|
|
|
# is used exclusively by home-assistant with python 3.8
|
|
|
|
disabled = pythonOlder "3.8";
|
2020-05-23 22:24:21 +02:00
|
|
|
|
2020-10-24 15:59:57 +02:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "zigpy";
|
|
|
|
repo = "zigpy-zigate";
|
2020-11-26 19:15:27 +01:00
|
|
|
rev = version;
|
2021-01-01 22:16:28 +01:00
|
|
|
sha256 = "0xl8qgljvmypi602f52m89iv9pcrzsdal3jw619vrcavp40rc04d";
|
2020-05-23 22:24:21 +02:00
|
|
|
};
|
|
|
|
|
2020-11-26 15:14:22 +01:00
|
|
|
propagatedBuildInputs = [
|
2020-10-24 15:59:57 +02:00
|
|
|
pyserial
|
|
|
|
pyserial-asyncio
|
2020-11-19 15:15:00 +01:00
|
|
|
pyusb
|
2020-10-24 15:59:57 +02:00
|
|
|
zigpy
|
|
|
|
];
|
|
|
|
|
|
|
|
checkInputs = [
|
|
|
|
asynctest
|
|
|
|
pytest-asyncio
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
|
|
|
|
|
|
|
meta = with lib; {
|
2020-05-23 22:24:21 +02:00
|
|
|
description = "A library which communicates with ZiGate radios for zigpy";
|
2020-10-24 15:59:57 +02:00
|
|
|
homepage = "https://github.com/zigpy/zigpy-zigate";
|
2020-05-23 22:24:21 +02:00
|
|
|
license = licenses.gpl3Plus;
|
|
|
|
maintainers = with maintainers; [ etu mvnetbiz ];
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|