From bc85ae629ad5b63bc95f9b3caafd6faab4a42c7a Mon Sep 17 00:00:00 2001 From: Kirill Radzikhovskyy Date: Sat, 3 Jan 2026 10:39:23 +1100 Subject: [PATCH] python3Packages.pulumi-aws: fix version in pyproject.toml --- pkgs/development/python-modules/pulumi-aws/default.nix | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/pkgs/development/python-modules/pulumi-aws/default.nix b/pkgs/development/python-modules/pulumi-aws/default.nix index b7c14d3e2760..21162733cc5f 100644 --- a/pkgs/development/python-modules/pulumi-aws/default.nix +++ b/pkgs/development/python-modules/pulumi-aws/default.nix @@ -26,6 +26,14 @@ buildPythonPackage rec { sourceRoot = "${src.name}/sdk/python"; + postPatch = '' + # We need the version of pulumi-aws in its package metadata to be accurate + # as this seems to be used to determine which version of the + # pulumi-resource-aws plugin to be dynamically downloaded by the pulumi CLI + substituteInPlace pyproject.toml \ + --replace-fail "7.0.0a0+dev" "${version}" + ''; + build-system = [ setuptools ]; dependencies = [