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:
parent
fb15a387ca
commit
1f76b6f5c6
|
@ -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 = [
|
||||||
|
|
Loading…
Reference in New Issue
Block a user