2024-05-15 15:35:15 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
async-timeout,
|
|
|
|
buildPythonPackage,
|
|
|
|
click,
|
|
|
|
click-log,
|
|
|
|
fetchFromGitHub,
|
|
|
|
pure-pcapy3,
|
|
|
|
pyserial-asyncio,
|
|
|
|
pytest-asyncio,
|
|
|
|
pytest-timeout,
|
|
|
|
pytestCheckHook,
|
|
|
|
pythonOlder,
|
|
|
|
setuptools,
|
|
|
|
voluptuous,
|
|
|
|
zigpy,
|
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";
|
2024-05-15 15:35:15 +00:00
|
|
|
version = "0.38.4";
|
2024-01-02 11:29:13 +00:00
|
|
|
pyproject = true;
|
2020-07-18 16:06:22 +00:00
|
|
|
|
2023-03-30 22:05:00 +00:00
|
|
|
disabled = pythonOlder "3.8";
|
2022-12-02 08:20:57 +00:00
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "zigpy";
|
|
|
|
repo = "bellows";
|
2022-05-18 14:49:53 +00:00
|
|
|
rev = "refs/tags/${version}";
|
2024-05-15 15:35:15 +00:00
|
|
|
hash = "sha256-IyJQgKTRrff/LqY14IaATrJTkmVDEv0JFHAxCydNk7Y=";
|
2020-07-18 16:06:22 +00:00
|
|
|
};
|
|
|
|
|
2024-01-02 11:29:13 +00:00
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace pyproject.toml \
|
2024-04-21 15:54:59 +00:00
|
|
|
--replace-fail '"setuptools-git-versioning<2"' "" \
|
|
|
|
--replace-fail 'dynamic = ["version"]' 'version = "${version}"'
|
2024-01-02 11:29:13 +00:00
|
|
|
'';
|
|
|
|
|
2024-05-15 15:35:15 +00:00
|
|
|
build-system = [ setuptools ];
|
2024-01-02 11:29:13 +00:00
|
|
|
|
2024-04-21 15:54:59 +00:00
|
|
|
dependencies = [
|
2021-03-09 03:18:52 +00:00
|
|
|
click
|
|
|
|
click-log
|
|
|
|
pure-pcapy3
|
|
|
|
pyserial-asyncio
|
|
|
|
voluptuous
|
|
|
|
zigpy
|
2024-05-15 15:35:15 +00:00
|
|
|
] ++ lib.optionals (pythonOlder "3.11") [ async-timeout ];
|
2020-07-18 16:06:22 +00:00
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
2021-02-05 17:12:51 +00:00
|
|
|
pytestCheckHook
|
|
|
|
pytest-asyncio
|
2021-08-08 23:34:03 +00:00
|
|
|
pytest-timeout
|
|
|
|
];
|
|
|
|
|
2024-05-15 15:35:15 +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";
|
2022-12-02 08:20:57 +00:00
|
|
|
changelog = "https://github.com/zigpy/bellows/releases/tag/${version}";
|
2020-07-18 16:06:22 +00:00
|
|
|
license = licenses.gpl3Plus;
|
2022-07-18 16:21:45 +00:00
|
|
|
maintainers = with maintainers; [ mvnetbiz ];
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "bellows";
|
2020-07-18 16:06:22 +00:00
|
|
|
};
|
|
|
|
}
|