google-cloud-sdk: Add various modules to PYTHONPATH

This fixes a sequence of missing-module errors seen when calling
`gcloud auth authenticate-service-acount`.
This commit is contained in:
Ben Doyle 2016-01-21 06:57:06 -05:00
parent 439b56d5f0
commit af847a68bd

View File

@ -1,5 +1,7 @@
{stdenv, fetchurl, python27, python27Packages, makeWrapper}: {stdenv, fetchurl, python27, python27Packages, makeWrapper}:
with python27Packages;
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
version = "0.9.82"; version = "0.9.82";
name = "google-cloud-sdk-${version}"; name = "google-cloud-sdk-${version}";
@ -23,7 +25,7 @@ stdenv.mkDerivation rec {
wrapper="$out/bin/$program" wrapper="$out/bin/$program"
makeWrapper "$programPath" "$wrapper" \ makeWrapper "$programPath" "$wrapper" \
--set CLOUDSDK_PYTHON "${python27}/bin/python" \ --set CLOUDSDK_PYTHON "${python27}/bin/python" \
--prefix PYTHONPATH : "$(toPythonPath ${python27Packages.crcmod})" --prefix PYTHONPATH : "$(toPythonPath ${cffi}):$(toPythonPath ${cryptography}):$(toPythonPath ${pyopenssl}):$(toPythonPath ${crcmod})"
done done
# install man pages # install man pages