2018-04-06 19:22:26 +00:00
|
|
|
{ lib, buildPythonPackage, fetchPypi, pythonOlder
|
2018-04-07 22:04:44 +00:00
|
|
|
, google_auth, protobuf, googleapis_common_protos, requests, grpcio, futures, mock, pytest }:
|
2017-12-20 22:47:52 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "google-api-core";
|
2019-02-03 10:47:41 +00:00
|
|
|
version = "1.7.0";
|
2017-12-20 22:47:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2019-02-03 10:47:41 +00:00
|
|
|
sha256 = "85693e163a1a6faea69a74f8feaf35d54dfa2559fbdbbe389c93ffb3bb4c9a79";
|
2017-12-20 22:47:52 +00:00
|
|
|
};
|
|
|
|
|
2018-04-06 19:22:26 +00:00
|
|
|
propagatedBuildInputs = [
|
2018-04-07 22:04:44 +00:00
|
|
|
googleapis_common_protos protobuf
|
2018-04-06 19:22:26 +00:00
|
|
|
google_auth requests grpcio
|
|
|
|
] ++ lib.optional (pythonOlder "3.2") futures;
|
|
|
|
checkInputs = [ mock pytest ];
|
2017-12-20 22:47:52 +00:00
|
|
|
|
|
|
|
checkPhase = ''
|
|
|
|
py.test
|
|
|
|
'';
|
|
|
|
|
2018-04-06 19:22:26 +00:00
|
|
|
meta = with lib; {
|
2017-12-20 22:47:52 +00:00
|
|
|
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;
|
|
|
|
maintainers = with maintainers; [ vanschelven ];
|
|
|
|
};
|
|
|
|
}
|