From a0763eb34360490ec7933c2d08046fe273f48616 Mon Sep 17 00:00:00 2001 From: Ivan Trubach Date: Thu, 27 Mar 2025 03:52:20 +0300 Subject: [PATCH] pulumi: add python3Packages.pulumi to passthru.tests --- pkgs/by-name/pu/pulumi/package.nix | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/pkgs/by-name/pu/pulumi/package.nix b/pkgs/by-name/pu/pulumi/package.nix index b782a3a76ff5..3bae75a1776b 100644 --- a/pkgs/by-name/pu/pulumi/package.nix +++ b/pkgs/by-name/pu/pulumi/package.nix @@ -10,6 +10,7 @@ callPackage, testers, pulumi, + python3Packages, nix-update-script, _experimental-update-script-combinators, }: @@ -140,6 +141,16 @@ buildGoModule rec { version = "v${version}"; command = "PULUMI_SKIP_UPDATE_CHECK=1 pulumi version"; }; + # Pulumi currently requires protobuf4, but Nixpkgs defaults to a newer + # version. Test that we can actually build the package with protobuf4. + # https://github.com/pulumi/pulumi/issues/16828 + # https://github.com/NixOS/nixpkgs/issues/351751#issuecomment-2462163436 + pythonPackage = + (python3Packages.overrideScope ( + final: _: { + protobuf = final.protobuf4; + } + )).pulumi; pulumiTestHookShellcheck = testers.shellcheck { name = "pulumi-test-hook-shellcheck"; src = ./extra/pulumi-test-hook.sh;