about summary refs log tree commit diff
path: root/pkgs/top-level/python-packages.nix
diff options
context:
space:
mode:
authorworldofpeace <worldofpeace@users.noreply.github.com>2019-03-14 13:37:17 -0400
committerRobert Schütz <robert.schuetz@stud.uni-heidelberg.de>2019-03-15 10:17:14 +0100
commitfb2af2a5741a40372c368a3e701b6c035cd9d0d0 (patch)
tree3c5af325ba94bf84acf5732f44736a9a66e95e22 /pkgs/top-level/python-packages.nix
parent72679615a102ed8a74aa4971c0288f136bb4726b (diff)
downloadnixlib-fb2af2a5741a40372c368a3e701b6c035cd9d0d0.tar
nixlib-fb2af2a5741a40372c368a3e701b6c035cd9d0d0.tar.gz
nixlib-fb2af2a5741a40372c368a3e701b6c035cd9d0d0.tar.bz2
nixlib-fb2af2a5741a40372c368a3e701b6c035cd9d0d0.tar.lz
nixlib-fb2af2a5741a40372c368a3e701b6c035cd9d0d0.tar.xz
nixlib-fb2af2a5741a40372c368a3e701b6c035cd9d0d0.tar.zst
nixlib-fb2af2a5741a40372c368a3e701b6c035cd9d0d0.zip
python.pkgs.google_api_python_client: conditionally override for python2.7
Diffstat (limited to 'pkgs/top-level/python-packages.nix')
-rw-r--r--pkgs/top-level/python-packages.nix12
1 files changed, 11 insertions, 1 deletions
diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix
index aaff85fc832f..11f51c39eb43 100644
--- a/pkgs/top-level/python-packages.nix
+++ b/pkgs/top-level/python-packages.nix
@@ -2685,7 +2685,17 @@ in {
 
   google_api_core = callPackage ../development/python-modules/google_api_core { };
 
-  google_api_python_client = callPackage ../development/python-modules/google-api-python-client { };
+  google_api_python_client = let
+    google_api_python_client = callPackage ../development/python-modules/google-api-python-client { };
+  in if isPy3k then google_api_python_client else
+    # Python 2.7 support was deprecated but is still needed by weboob
+    google_api_python_client.overridePythonAttrs (old: rec {
+      version = "1.7.6";
+      src = old.src.override {
+        inherit version;
+        sha256 = "14w5sdrp0bk9n0r2lmpqmrbf2zclpfq6q7giyahnskkfzdkb165z";
+      };
+    });
 
   google_apputils = callPackage ../development/python-modules/google_apputils { };