39b0773e95
Semi-automatic update generated by https://github.com/ryantm/nixpkgs-update tools. This update was made based on information from https://repology.org/metapackage/python3.6-google-api-core/versions
30 lines
878 B
Nix
30 lines
878 B
Nix
{ lib, buildPythonPackage, fetchPypi, pythonOlder
|
|
, google_auth, protobuf, googleapis_common_protos, requests, grpcio, futures, mock, pytest }:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "google-api-core";
|
|
version = "1.5.2";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "16knimv41rjhrqkibm1p8f5ssmbbcjn7njc71lpr8v03l7mr6f9q";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
googleapis_common_protos protobuf
|
|
google_auth requests 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 ];
|
|
};
|
|
}
|