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-14 21:48:57 +00:00
|
|
|
version = "0.7.2";
|
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-14 21:48:57 +00:00
|
|
|
rev = "v${version}";
|
2020-11-19 14:15:00 +00:00
|
|
|
sha256 = "0ycrsmp3n3awiyj0gbq6xnaa2s9mpc5l7mlmfc00rfnx7rr2z4ha";
|
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;
|
|
|
|
};
|
|
|
|
}
|