mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-09-17 12:50:04 +00:00
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:
@@ -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
|
||||
];
|
||||
|
||||
Reference in New Issue
Block a user