python312Packages.bellows: refactor

This commit is contained in:
Fabian Affolter 2024-04-02 20:29:06 +02:00 committed by Martin Weinelt
parent 426c70b8b3
commit fb15a387ca
No known key found for this signature in database
GPG Key ID: 87C1E9888F856759

View File

@ -1,4 +1,5 @@
{ lib { lib
, async-timeout
, buildPythonPackage , buildPythonPackage
, click , click
, click-log , click-log
@ -30,21 +31,23 @@ buildPythonPackage rec {
postPatch = '' postPatch = ''
substituteInPlace pyproject.toml \ substituteInPlace pyproject.toml \
--replace '"setuptools-git-versioning<2"' "" \ --replace-fail '"setuptools-git-versioning<2"' "" \
--replace 'dynamic = ["version"]' 'version = "${version}"' --replace-fail 'dynamic = ["version"]' 'version = "${version}"'
''; '';
nativeBuildInputs = [ build-system = [
setuptools setuptools
]; ];
propagatedBuildInputs = [ dependencies = [
click click
click-log click-log
pure-pcapy3 pure-pcapy3
pyserial-asyncio pyserial-asyncio
voluptuous voluptuous
zigpy zigpy
] ++ lib.optionals (pythonOlder "3.11") [
async-timeout
]; ];
nativeCheckInputs = [ nativeCheckInputs = [
@ -59,10 +62,10 @@ buildPythonPackage rec {
meta = with lib; { meta = with lib; {
description = "Python module to implement EZSP for EmberZNet devices"; description = "Python module to implement EZSP for EmberZNet devices";
mainProgram = "bellows";
homepage = "https://github.com/zigpy/bellows"; homepage = "https://github.com/zigpy/bellows";
changelog = "https://github.com/zigpy/bellows/releases/tag/${version}"; changelog = "https://github.com/zigpy/bellows/releases/tag/${version}";
license = licenses.gpl3Plus; license = licenses.gpl3Plus;
maintainers = with maintainers; [ mvnetbiz ]; maintainers = with maintainers; [ mvnetbiz ];
mainProgram = "bellows";
}; };
} }