build: force google-cloud-sdk to use python3

This prevents an error where the python2 version of the SDK tries to
use the monotonic library which is unable to detect the host operating
system inside the sandbox - exploding in typical python fashion.

By using python3 it obviates the need for the monotonic dependency by
using the builtin time.monotonic call.
This commit is contained in:
Brendan Hay 2020-11-05 12:57:18 +01:00 committed by Joe Bryan
parent b1790b1b3a
commit 244a9b6a06

View File

@ -1,4 +1,4 @@
{ lib, makeEffect, google-cloud-sdk }:
{ lib, makeEffect, python3, google-cloud-sdk }:
{ bucket, object, name, file, contentType, serviceAccountKey }:
@ -14,7 +14,7 @@ in makeEffect {
name = "push-${name}";
inputs = [ google-cloud-sdk ];
inputs = [ (google-cloud-sdk.override { python = python3; }) ];
dontUnpack = true;