mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-07-06 17:13:24 -05:00
python3Packages.zigpy-xbee: use pyprojectVersionPatchHook
This commit is contained in:
parent
86ba5d4e9b
commit
d105df0916
1 changed files with 6 additions and 2 deletions
|
|
@ -2,6 +2,7 @@
|
|||
lib,
|
||||
buildPythonPackage,
|
||||
fetchFromGitHub,
|
||||
pyprojectVersionPatchHook,
|
||||
pytest-asyncio,
|
||||
pytestCheckHook,
|
||||
pyserial-asyncio-fast,
|
||||
|
|
@ -23,12 +24,15 @@ buildPythonPackage rec {
|
|||
|
||||
postPatch = ''
|
||||
substituteInPlace pyproject.toml \
|
||||
--replace-fail ', "setuptools-git-versioning<2"' "" \
|
||||
--replace-fail 'dynamic = ["version"]' 'version = "${version}"'
|
||||
--replace-fail ', "setuptools-git-versioning<2"' ""
|
||||
'';
|
||||
|
||||
build-system = [ setuptools ];
|
||||
|
||||
nativeBuildInputs = [
|
||||
pyprojectVersionPatchHook
|
||||
];
|
||||
|
||||
dependencies = [
|
||||
zigpy
|
||||
];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue