2021-03-09 03:18:52 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, click
|
|
|
|
, click-log
|
2021-08-08 23:34:03 +00:00
|
|
|
, dataclasses
|
2021-03-09 03:18:52 +00:00
|
|
|
, pure-pcapy3
|
|
|
|
, pyserial-asyncio
|
|
|
|
, voluptuous
|
|
|
|
, zigpy
|
|
|
|
, asynctest
|
2021-08-08 23:34:03 +00:00
|
|
|
, pythonOlder
|
2021-03-09 03:18:52 +00:00
|
|
|
, pytestCheckHook
|
|
|
|
, pytest-asyncio
|
2021-08-08 23:34:03 +00:00
|
|
|
, pytest-timeout
|
2021-03-09 03:18:52 +00:00
|
|
|
}:
|
2020-07-18 16:06:22 +00:00
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
buildPythonPackage rec {
|
2020-07-18 16:06:22 +00:00
|
|
|
pname = "bellows";
|
2021-10-07 14:46:35 +00:00
|
|
|
version = "0.28.0";
|
2020-07-18 16:06:22 +00:00
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "zigpy";
|
|
|
|
repo = "bellows";
|
|
|
|
rev = version;
|
2021-10-07 14:46:35 +00:00
|
|
|
sha256 = "sha256-j1vS6PDvvuJapECn0lKGuBkYwWsyzJaTZDRQPjMsuLk=";
|
2020-07-18 16:06:22 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
2021-03-09 03:18:52 +00:00
|
|
|
click
|
|
|
|
click-log
|
|
|
|
pure-pcapy3
|
|
|
|
pyserial-asyncio
|
|
|
|
voluptuous
|
|
|
|
zigpy
|
2021-08-08 23:34:03 +00:00
|
|
|
] ++ lib.optionals (pythonOlder "3.7") [
|
|
|
|
dataclasses
|
2020-07-18 16:06:22 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
checkInputs = [
|
2021-02-05 17:12:51 +00:00
|
|
|
pytestCheckHook
|
|
|
|
pytest-asyncio
|
2021-08-08 23:34:03 +00:00
|
|
|
pytest-timeout
|
|
|
|
] ++ lib.optionals (pythonOlder "3.8") [
|
|
|
|
asynctest
|
|
|
|
];
|
|
|
|
|
|
|
|
disabledTests = [
|
2021-09-18 10:52:07 +00:00
|
|
|
# AssertionError: assert 65534 is None
|
|
|
|
# https://github.com/zigpy/bellows/issues/436
|
|
|
|
"test_startup_nwk_params"
|
2021-08-08 23:34:03 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
pythonImportsCheck = [
|
|
|
|
"bellows"
|
2020-07-18 16:06:22 +00:00
|
|
|
];
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2021-08-08 23:34:03 +00:00
|
|
|
description = "Python module to implement EZSP for EmberZNet devices";
|
2020-07-18 16:06:22 +00:00
|
|
|
homepage = "https://github.com/zigpy/bellows";
|
|
|
|
license = licenses.gpl3Plus;
|
|
|
|
maintainers = with maintainers; [ etu mvnetbiz ];
|
|
|
|
};
|
|
|
|
}
|