2020-11-03 02:18:15 +00:00
|
|
|
{ lib
|
|
|
|
, asynctest
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, pyserial
|
|
|
|
, pyserial-asyncio
|
|
|
|
, pytest-asyncio
|
|
|
|
, pytestCheckHook
|
|
|
|
, pythonOlder
|
2021-09-18 10:52:07 +00:00
|
|
|
, zigpy
|
|
|
|
}:
|
2020-07-18 16:06:22 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "zigpy-xbee";
|
2021-09-18 10:52:07 +00:00
|
|
|
version = "0.14.0";
|
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-xbee";
|
|
|
|
rev = version;
|
2021-09-18 10:52:07 +00:00
|
|
|
sha256 = "sha256-veAkaBHPYgVd3iwvnH/A2upYX4T/qXXNRcaysbRQvNI=";
|
2020-07-18 16:06:22 +00:00
|
|
|
};
|
|
|
|
|
2020-11-03 02:18:15 +00:00
|
|
|
buildInputs = [
|
|
|
|
pyserial
|
|
|
|
pyserial-asyncio
|
|
|
|
zigpy
|
|
|
|
];
|
|
|
|
|
|
|
|
checkInputs = [
|
|
|
|
asynctest
|
|
|
|
pytest-asyncio
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
|
|
|
|
2021-09-18 10:52:07 +00:00
|
|
|
disabledTests = [
|
|
|
|
# assertion failure
|
|
|
|
# E assert ff:ff:ff:ff:ff:ff:ff:ff is None
|
|
|
|
"test_startup_api_mode_config_fails"
|
|
|
|
];
|
|
|
|
|
2020-11-03 02:18:15 +00:00
|
|
|
meta = with lib; {
|
2020-07-18 16:06:22 +00:00
|
|
|
description = "A library which communicates with XBee radios for zigpy";
|
2020-11-30 08:33:03 +00:00
|
|
|
homepage = "https://github.com/zigpy/zigpy-xbee";
|
2020-07-18 16:06:22 +00:00
|
|
|
license = licenses.gpl3Plus;
|
|
|
|
maintainers = with maintainers; [ etu mvnetbiz ];
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|