2023-11-16 04:20:00 +00:00
|
|
|
{ buildGoModule
|
2022-11-21 17:40:18 +00:00
|
|
|
, pulumi
|
|
|
|
, python3
|
|
|
|
}:
|
|
|
|
buildGoModule rec {
|
2023-11-16 04:20:00 +00:00
|
|
|
inherit (pulumi) version src;
|
2022-11-21 17:40:18 +00:00
|
|
|
|
|
|
|
pname = "pulumi-language-python";
|
|
|
|
|
2023-11-16 04:20:00 +00:00
|
|
|
sourceRoot = "${src.name}/sdk/python/cmd/pulumi-language-python";
|
2022-11-21 17:40:18 +00:00
|
|
|
|
2024-04-21 15:54:59 +00:00
|
|
|
vendorHash = "sha256-Q8nnYJJN5+W2luY8JQJj1X9KIk9ad511FBywr+0wBNg=";
|
2022-11-21 17:40:18 +00:00
|
|
|
|
|
|
|
postPatch = ''
|
2023-11-16 04:20:00 +00:00
|
|
|
substituteInPlace main_test.go \
|
2022-11-21 17:40:18 +00:00
|
|
|
--replace "TestDeterminePulumiPackages" \
|
|
|
|
"SkipTestDeterminePulumiPackages"
|
|
|
|
'';
|
|
|
|
|
|
|
|
ldflags = [
|
|
|
|
"-s"
|
|
|
|
"-w"
|
|
|
|
"-X github.com/pulumi/pulumi/sdk/v3/go/common/version.Version=${version}"
|
|
|
|
];
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
2022-11-21 17:40:18 +00:00
|
|
|
python3
|
|
|
|
];
|
|
|
|
|
|
|
|
postInstall = ''
|
2023-11-16 04:20:00 +00:00
|
|
|
cp ../pulumi-language-python-exec $out/bin
|
|
|
|
cp ../../dist/pulumi-resource-pulumi-python $out/bin
|
|
|
|
cp ../../dist/pulumi-analyzer-policy-python $out/bin
|
2022-11-21 17:40:18 +00:00
|
|
|
'';
|
|
|
|
}
|