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

View File

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