python312Packages.bellows: refactor
This commit is contained in:
parent
426c70b8b3
commit
fb15a387ca
|
@ -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";
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user