python3Packages.zha: use pyprojectVersionPatchHook
This commit is contained in:
@@ -5,6 +5,7 @@
|
||||
fetchFromGitHub,
|
||||
freezegun,
|
||||
looptime,
|
||||
pyprojectVersionPatchHook,
|
||||
pyserial,
|
||||
pyserial-asyncio-fast,
|
||||
pytest-asyncio_0,
|
||||
@@ -37,10 +38,13 @@ buildPythonPackage (finalAttrs: {
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace pyproject.toml \
|
||||
--replace-fail '"setuptools-git-versioning<3"' "" \
|
||||
--replace-fail 'dynamic = ["version"]' 'version = "${finalAttrs.version}"'
|
||||
--replace-fail '"setuptools-git-versioning<3"' ""
|
||||
'';
|
||||
|
||||
nativeBuildInputs = [
|
||||
pyprojectVersionPatchHook
|
||||
];
|
||||
|
||||
build-system = [
|
||||
setuptools
|
||||
];
|
||||
|
||||
Reference in New Issue
Block a user