mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-02 11:53:27 +00:00
33afbf39f6
checkInputs used to be added to nativeBuildInputs. Now we have nativeCheckInputs to do that instead. Doing this treewide change allows to keep hashes identical to before the introduction of nativeCheckInputs.
46 lines
1012 B
Nix
46 lines
1012 B
Nix
{ lib
|
|
, buildGoModule
|
|
, pulumi
|
|
, python3
|
|
}:
|
|
buildGoModule rec {
|
|
inherit (pulumi) version src sdkVendorHash;
|
|
|
|
pname = "pulumi-language-python";
|
|
|
|
sourceRoot = "${src.name}/sdk";
|
|
|
|
vendorHash = sdkVendorHash;
|
|
|
|
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}"
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
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
|
|
'';
|
|
}
|