python3Packages.gcp-storage-emulator: fix version in package metadata

setup.py only picks up the real version from GITHUB_REF when upstream CI
builds a tag, so the wheel recorded 0.0.0.dev0 and pythonMetadataCheckPhase
rejected it. pyprojectVersionPatchHook cannot help here the pyproject.toml has
no [project] or [tool.poetry] section.

Needs #562745 to build.

Signed-off-by: Brian McGillion <bmg.avoin@gmail.com>
This commit is contained in:
Brian McGillion
2026-09-13 06:39:35 +04:00
parent 02f5696b0e
commit 3d3bbb85bf

View File

@@ -23,6 +23,12 @@ buildPythonPackage rec {
hash = "sha256-Lp9Wvod0wSE2+cnvLXguhagT30ax9TivyR8gC/kB7w0=";
};
# upstream only sets the real version from GITHUB_REF when its CI builds a tag
postPatch = ''
substituteInPlace setup.py \
--replace-fail '"0.0.0.dev0"' '"${version}"'
'';
build-system = [
setuptools
];