mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-26 00:43:20 +00:00
python.pkgs.google_api_core: fix build
This commit is contained in:
parent
a806280911
commit
e5cebc7cff
@ -1,5 +1,5 @@
|
|||||||
{ stdenv, buildPythonPackage, fetchPypi
|
{ lib, buildPythonPackage, fetchPypi, pythonOlder
|
||||||
, google_auth, protobuf3_5, googleapis_common_protos, requests, grpcio, setuptools, mock, pytest }:
|
, google_auth, protobuf3_5, googleapis_common_protos, requests, grpcio, futures, mock, pytest }:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "google-api-core";
|
pname = "google-api-core";
|
||||||
@ -10,14 +10,17 @@ buildPythonPackage rec {
|
|||||||
sha256 = "b4f103de6bd38ab346f7d17236f6098a51ebdff733ff69956a0f1e29cb35f10b";
|
sha256 = "b4f103de6bd38ab346f7d17236f6098a51ebdff733ff69956a0f1e29cb35f10b";
|
||||||
};
|
};
|
||||||
|
|
||||||
propagatedBuildInputs = [ google_auth protobuf3_5 googleapis_common_protos requests grpcio ];
|
propagatedBuildInputs = [
|
||||||
checkInputs = [ setuptools mock pytest ];
|
googleapis_common_protos protobuf3_5
|
||||||
|
google_auth requests grpcio
|
||||||
|
] ++ lib.optional (pythonOlder "3.2") futures;
|
||||||
|
checkInputs = [ mock pytest ];
|
||||||
|
|
||||||
checkPhase = ''
|
checkPhase = ''
|
||||||
py.test
|
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.";
|
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";
|
homepage = "https://github.com/GoogleCloudPlatform/google-cloud-python";
|
||||||
license = licenses.asl20;
|
license = licenses.asl20;
|
||||||
|
Loading…
Reference in New Issue
Block a user