python312Packages.universal-silabs-flasher: refactor

- Fix version (was not picked up proberly)
  Unpacking to: unpacked/universal_silabs_flasher-0.0.1...OK
This commit is contained in:
Fabian Affolter 2024-04-02 20:45:25 +02:00 committed by Martin Weinelt
parent fb15a387ca
commit 1f76b6f5c6
No known key found for this signature in database
GPG Key ID: 87C1E9888F856759
1 changed files with 9 additions and 2 deletions

View File

@ -6,7 +6,6 @@
# build-system
, setuptools
, setuptools-git-versioning
# dependencies
, async-timeout
@ -37,10 +36,18 @@ buildPythonPackage rec {
hash = "sha256-VoO9B27CNY2Cnt/Q2HsU6DVYkukQMgbIHc6xqfN0P7w=";
};
postPatch = ''
substituteInPlace pyproject.toml \
--replace-fail '"setuptools-git-versioning<2"' "" \
--replace-fail 'dynamic = ["version"]' 'version = "${version}"'
'';
nativeBuildInputs = [
pythonRelaxDepsHook
];
build-system = [
setuptools
setuptools-git-versioning
];
pythonRelaxDeps = [