about summary refs log tree commit diff
path: root/pkgs/development/python-modules/google_api_core
diff options
context:
space:
mode:
authorRobert Schütz <robert.schuetz@stud.uni-heidelberg.de>2018-04-06 21:22:26 +0200
committerFrederik Rietdijk <fridh@fridh.nl>2018-04-08 11:36:06 +0200
commite5cebc7cff0febde297bdd1cba7ac188385cdfc0 (patch)
tree8d78e978a633a742ab760e9b4021c212b61eb2e2 /pkgs/development/python-modules/google_api_core
parenta80628091180c8566ff3ae90f53cad9320ab889f (diff)
downloadnixlib-e5cebc7cff0febde297bdd1cba7ac188385cdfc0.tar
nixlib-e5cebc7cff0febde297bdd1cba7ac188385cdfc0.tar.gz
nixlib-e5cebc7cff0febde297bdd1cba7ac188385cdfc0.tar.bz2
nixlib-e5cebc7cff0febde297bdd1cba7ac188385cdfc0.tar.lz
nixlib-e5cebc7cff0febde297bdd1cba7ac188385cdfc0.tar.xz
nixlib-e5cebc7cff0febde297bdd1cba7ac188385cdfc0.tar.zst
nixlib-e5cebc7cff0febde297bdd1cba7ac188385cdfc0.zip
python.pkgs.google_api_core: fix build
Diffstat (limited to 'pkgs/development/python-modules/google_api_core')
-rw-r--r--pkgs/development/python-modules/google_api_core/default.nix13
1 files changed, 8 insertions, 5 deletions
diff --git a/pkgs/development/python-modules/google_api_core/default.nix b/pkgs/development/python-modules/google_api_core/default.nix
index 34e0e6ca7933..abd4b886478a 100644
--- a/pkgs/development/python-modules/google_api_core/default.nix
+++ b/pkgs/development/python-modules/google_api_core/default.nix
@@ -1,5 +1,5 @@
-{ stdenv, buildPythonPackage, fetchPypi
-, google_auth, protobuf3_5, googleapis_common_protos, requests, grpcio, setuptools, mock, pytest }:
+{ lib, buildPythonPackage, fetchPypi, pythonOlder
+, google_auth, protobuf3_5, googleapis_common_protos, requests, grpcio, futures, mock, pytest }:
 
 buildPythonPackage rec {
   pname = "google-api-core";
@@ -10,14 +10,17 @@ buildPythonPackage rec {
     sha256 = "b4f103de6bd38ab346f7d17236f6098a51ebdff733ff69956a0f1e29cb35f10b";
   };
 
-  propagatedBuildInputs = [ google_auth protobuf3_5 googleapis_common_protos requests grpcio ];
-  checkInputs = [ setuptools mock pytest ];
+  propagatedBuildInputs = [
+    googleapis_common_protos protobuf3_5
+    google_auth requests grpcio
+  ] ++ lib.optional (pythonOlder "3.2") futures;
+  checkInputs = [ mock pytest ];
 
   checkPhase = ''
     py.test
   '';
 
-  meta = with stdenv.lib; {
+  meta = with lib; {
     description = "This library is not meant to stand-alone. Instead it defines common helpers used by all Google API clients.";
     homepage = "https://github.com/GoogleCloudPlatform/google-cloud-python";
     license = licenses.asl20;