a66bca1520
GitOrigin-RevId: 40f79f003b6377bd2f4ed4027dde1f8f922995dd
45 lines
1 KiB
Nix
45 lines
1 KiB
Nix
{ lib
|
|
, buildGoModule
|
|
, pulumi
|
|
, python3
|
|
}:
|
|
buildGoModule rec {
|
|
inherit (pulumi) version src;
|
|
|
|
pname = "pulumi-language-python";
|
|
|
|
sourceRoot = "${src.name}/sdk";
|
|
|
|
vendorHash = "sha256-gM3VpX6r/BScUyvk/XefAfbx0qYzdzSBGaWZN+89BS8=";
|
|
|
|
postPatch = ''
|
|
# Requires network
|
|
substituteInPlace python/python_test.go \
|
|
--replace "TestRunningPipInVirtualEnvironment" \
|
|
"SkipTestRunningPipInVirtualEnvironment"
|
|
|
|
substituteInPlace python/cmd/pulumi-language-python/main_test.go \
|
|
--replace "TestDeterminePulumiPackages" \
|
|
"SkipTestDeterminePulumiPackages"
|
|
'';
|
|
|
|
subPackages = [
|
|
"python/cmd/pulumi-language-python"
|
|
];
|
|
|
|
ldflags = [
|
|
"-s"
|
|
"-w"
|
|
"-X github.com/pulumi/pulumi/sdk/v3/go/common/version.Version=${version}"
|
|
];
|
|
|
|
checkInputs = [
|
|
python3
|
|
];
|
|
|
|
postInstall = ''
|
|
cp python/cmd/pulumi-language-python-exec $out/bin
|
|
cp python/dist/pulumi-resource-pulumi-python $out/bin
|
|
cp python/dist/pulumi-analyzer-policy-python $out/bin
|
|
'';
|
|
}
|