From 3d3bbb85bf554026c80fe883de2e6b7ca02bac60 Mon Sep 17 00:00:00 2001 From: Brian McGillion Date: Sun, 13 Sep 2026 06:39:35 +0400 Subject: [PATCH] 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 --- .../python-modules/gcp-storage-emulator/default.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pkgs/development/python-modules/gcp-storage-emulator/default.nix b/pkgs/development/python-modules/gcp-storage-emulator/default.nix index c5fc7ed32c4a..94380f4f5d41 100644 --- a/pkgs/development/python-modules/gcp-storage-emulator/default.nix +++ b/pkgs/development/python-modules/gcp-storage-emulator/default.nix @@ -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 ];