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 ];