2020-10-24 14:59:57 +01:00
|
|
|
{ lib
|
|
|
|
, asynctest
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, pyserial
|
|
|
|
, pyserial-asyncio
|
2020-11-19 14:15:00 +00:00
|
|
|
, pyusb
|
2020-10-24 14:59:57 +01:00
|
|
|
, pytest-asyncio
|
|
|
|
, pytestCheckHook
|
|
|
|
, pythonOlder
|
|
|
|
, zigpy }:
|
2020-05-23 21:24:21 +01:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "zigpy-zigate";
|
2020-11-26 18:15:27 +00:00
|
|
|
version = "0.7.3";
|
2020-10-24 14:59:57 +01: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 21:24:21 +01:00
|
|
|
|
2020-10-24 14:59:57 +01:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "zigpy";
|
|
|
|
repo = "zigpy-zigate";
|
2020-11-26 18:15:27 +00:00
|
|
|
rev = version;
|
|
|
|
sha256 = "068v8n8yimmpnwqcdz5m9g35z1x0dir478cbc1s1nyhw1xn50vg1";
|
2020-05-23 21:24:21 +01:00
|
|
|
};
|
|
|
|
|
2020-11-26 14:14:22 +00:00
|
|
|
propagatedBuildInputs = [
|
2020-10-24 14:59:57 +01:00
|
|
|
pyserial
|
|
|
|
pyserial-asyncio
|
2020-11-19 14:15:00 +00:00
|
|
|
pyusb
|
2020-10-24 14:59:57 +01:00
|
|
|
zigpy
|
|
|
|
];
|
|
|
|
|
|
|
|
checkInputs = [
|
|
|
|
asynctest
|
|
|
|
pytest-asyncio
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
|
|
|
|
|
|
|
meta = with lib; {
|
2020-05-23 21:24:21 +01:00
|
|
|
description = "A library which communicates with ZiGate radios for zigpy";
|
2020-10-24 14:59:57 +01:00
|
|
|
homepage = "https://github.com/zigpy/zigpy-zigate";
|
2020-05-23 21:24:21 +01:00
|
|
|
license = licenses.gpl3Plus;
|
|
|
|
maintainers = with maintainers; [ etu mvnetbiz ];
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|