2020-11-03 02:18:15 +00:00
|
|
|
{ lib
|
|
|
|
, asynctest
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, pyserial
|
|
|
|
, pyserial-asyncio
|
2020-11-21 19:51:51 +00:00
|
|
|
, pyusb
|
2020-11-03 02:18:15 +00:00
|
|
|
, pytest-asyncio
|
|
|
|
, pytestCheckHook
|
|
|
|
, pythonOlder
|
|
|
|
, zigpy }:
|
2020-07-18 16:06:22 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "zigpy-zigate";
|
2020-11-30 08:33:03 +00:00
|
|
|
version = "0.7.3";
|
2020-11-03 02:18:15 +00: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-07-18 16:06:22 +00:00
|
|
|
|
2020-11-03 02:18:15 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "zigpy";
|
|
|
|
repo = "zigpy-zigate";
|
2020-11-30 08:33:03 +00:00
|
|
|
rev = version;
|
|
|
|
sha256 = "068v8n8yimmpnwqcdz5m9g35z1x0dir478cbc1s1nyhw1xn50vg1";
|
2020-07-18 16:06:22 +00:00
|
|
|
};
|
|
|
|
|
2020-11-30 08:33:03 +00:00
|
|
|
propagatedBuildInputs = [
|
2020-11-03 02:18:15 +00:00
|
|
|
pyserial
|
|
|
|
pyserial-asyncio
|
2020-11-21 19:51:51 +00:00
|
|
|
pyusb
|
2020-11-03 02:18:15 +00:00
|
|
|
zigpy
|
|
|
|
];
|
|
|
|
|
|
|
|
checkInputs = [
|
|
|
|
asynctest
|
|
|
|
pytest-asyncio
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
|
|
|
|
|
|
|
meta = with lib; {
|
2020-07-18 16:06:22 +00:00
|
|
|
description = "A library which communicates with ZiGate radios for zigpy";
|
2020-11-03 02:18:15 +00:00
|
|
|
homepage = "https://github.com/zigpy/zigpy-zigate";
|
2020-07-18 16:06:22 +00:00
|
|
|
license = licenses.gpl3Plus;
|
|
|
|
maintainers = with maintainers; [ etu mvnetbiz ];
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|