2021-03-03 22:53:13 +00:00
|
|
|
{ lib
|
2022-11-26 15:34:49 +00:00
|
|
|
, asynctest
|
2021-03-03 22:53:13 +00:00
|
|
|
, buildPythonPackage
|
|
|
|
, click
|
|
|
|
, click-log
|
2022-11-26 15:34:49 +00:00
|
|
|
, fetchFromGitHub
|
2021-03-03 22:53:13 +00:00
|
|
|
, pure-pcapy3
|
|
|
|
, pyserial-asyncio
|
|
|
|
, pytest-asyncio
|
2021-08-01 15:00:54 +00:00
|
|
|
, pytest-timeout
|
2022-11-26 15:34:49 +00:00
|
|
|
, pytestCheckHook
|
|
|
|
, pythonOlder
|
|
|
|
, voluptuous
|
|
|
|
, zigpy
|
2021-03-03 22:53:13 +00:00
|
|
|
}:
|
2020-03-24 21:13:54 +00:00
|
|
|
|
2021-01-20 10:24:45 +00:00
|
|
|
buildPythonPackage rec {
|
2020-03-24 21:13:54 +00:00
|
|
|
pname = "bellows";
|
2023-02-27 09:55:33 +00:00
|
|
|
version = "0.34.9";
|
2021-11-28 13:23:17 +00:00
|
|
|
format = "setuptools";
|
2020-03-24 21:13:54 +00:00
|
|
|
|
2022-11-26 15:34:49 +00:00
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
|
2021-01-20 10:24:45 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "zigpy";
|
|
|
|
repo = "bellows";
|
2022-05-11 03:37:24 +00:00
|
|
|
rev = "refs/tags/${version}";
|
2023-02-27 09:55:33 +00:00
|
|
|
hash = "sha256-2QTY6mZkhaXHeZcLKxW7BkzOj2jYJx1v4TKG5YBcSC0=";
|
2020-03-24 21:13:54 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
2021-03-03 22:53:13 +00:00
|
|
|
click
|
|
|
|
click-log
|
|
|
|
pure-pcapy3
|
|
|
|
pyserial-asyncio
|
|
|
|
voluptuous
|
|
|
|
zigpy
|
2020-03-24 21:13:54 +00:00
|
|
|
];
|
|
|
|
|
2023-01-21 12:00:00 +00:00
|
|
|
nativeCheckInputs = [
|
2021-01-20 10:24:45 +00:00
|
|
|
pytestCheckHook
|
|
|
|
pytest-asyncio
|
2021-08-01 15:00:54 +00:00
|
|
|
pytest-timeout
|
|
|
|
] ++ lib.optionals (pythonOlder "3.8") [
|
|
|
|
asynctest
|
|
|
|
];
|
|
|
|
|
|
|
|
pythonImportsCheck = [
|
|
|
|
"bellows"
|
2020-03-24 21:13:54 +00:00
|
|
|
];
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2021-08-01 15:00:54 +00:00
|
|
|
description = "Python module to implement EZSP for EmberZNet devices";
|
2020-03-24 21:13:54 +00:00
|
|
|
homepage = "https://github.com/zigpy/bellows";
|
2022-11-26 15:34:49 +00:00
|
|
|
changelog = "https://github.com/zigpy/bellows/releases/tag/${version}";
|
2020-03-24 21:13:54 +00:00
|
|
|
license = licenses.gpl3Plus;
|
2022-07-14 12:39:58 +00:00
|
|
|
maintainers = with maintainers; [ mvnetbiz ];
|
2020-03-24 21:13:54 +00:00
|
|
|
};
|
|
|
|
}
|