mirror of
https://github.com/SebastianWendel/nixpkgs.git
synced 2024-09-19 20:09:01 +02:00
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
|
||||
, 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 = [
|
||||
|
|
Loading…
Reference in a new issue