2020-10-24 14:57:07 +01:00
|
|
|
{ lib
|
|
|
|
, asynctest
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, pyserial
|
|
|
|
, pyserial-asyncio
|
|
|
|
, pytest-asyncio
|
|
|
|
, pytestCheckHook
|
|
|
|
, pythonOlder
|
|
|
|
, zigpy }:
|
2020-05-23 21:13:54 +01:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "zigpy-xbee";
|
2020-10-24 14:57:07 +01:00
|
|
|
version = "0.13.0";
|
|
|
|
# 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:13:54 +01:00
|
|
|
|
2020-10-24 14:57:07 +01:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "zigpy";
|
|
|
|
repo = "zigpy-xbee";
|
|
|
|
rev = version;
|
|
|
|
sha256 = "Krdqb9bYKwUC2cdNppB2+tLwWjzmzIHhXnQ1KRduofU=";
|
2020-05-23 21:13:54 +01:00
|
|
|
};
|
|
|
|
|
2020-10-24 14:57:07 +01:00
|
|
|
buildInputs = [
|
|
|
|
pyserial
|
|
|
|
pyserial-asyncio
|
|
|
|
zigpy
|
|
|
|
];
|
|
|
|
|
|
|
|
checkInputs = [
|
|
|
|
asynctest
|
|
|
|
pytest-asyncio
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
|
|
|
|
|
|
|
meta = with lib; {
|
2020-05-23 21:13:54 +01:00
|
|
|
description = "A library which communicates with XBee radios for zigpy";
|
2020-11-27 00:29:13 +00:00
|
|
|
homepage = "https://github.com/zigpy/zigpy-xbee";
|
2020-05-23 21:13:54 +01:00
|
|
|
license = licenses.gpl3Plus;
|
|
|
|
maintainers = with maintainers; [ etu mvnetbiz ];
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|