31 lines
989 B
Nix
31 lines
989 B
Nix
{ lib, buildPythonPackage, fetchPypi, pythonOlder, isPy27
|
|
, google_auth, protobuf, googleapis_common_protos, requests, setuptools, grpcio, futures, mock, pytest }:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "google-api-core";
|
|
version = "1.14.3";
|
|
disabled = isPy27; # google namespace no longer works on python2
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "df8adc4b97f5ab4328a0e745bee77877cf4a7d4601cb1cd5959d2bbf8fba57aa";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
googleapis_common_protos protobuf
|
|
google_auth requests setuptools grpcio
|
|
] ++ lib.optional (pythonOlder "3.2") futures;
|
|
checkInputs = [ mock pytest ];
|
|
|
|
checkPhase = ''
|
|
py.test
|
|
'';
|
|
|
|
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;
|
|
maintainers = with maintainers; [ vanschelven ];
|
|
};
|
|
}
|