python3Packages.google_api_core: 1.22.1 -> 1.22.4

This commit is contained in:
Austin Butler 2020-11-02 17:14:27 -08:00 committed by Jonathan Ringer
parent 2778cf633a
commit b6421926db

View File

@ -1,32 +1,27 @@
{ lib, buildPythonPackage, fetchPypi, pythonOlder, isPy27 { lib, buildPythonPackage, fetchPypi, pythonOlder, google_auth, protobuf
, google_auth, protobuf, googleapis_common_protos, requests, setuptools, grpcio , googleapis_common_protos, requests, grpcio, mock, pytest, pytest-asyncio, pytestCheckHook }:
, mock
}:
buildPythonPackage rec { buildPythonPackage rec {
pname = "google-api-core"; pname = "google-api-core";
version = "1.22.1"; version = "1.22.4";
disabled = isPy27; # google namespace no longer works on python2 disabled = pythonOlder "3.5";
src = fetchPypi { src = fetchPypi {
inherit pname version; inherit pname version;
sha256 = "35cba563034d668ae90ffe1f03193a84e745b38f09592f60258358b5e5ee6238"; sha256 = "06pck3hwl1pks26q843hv6pxchby9viab05mxf72k7ksab17m7aa";
}; };
propagatedBuildInputs = [ propagatedBuildInputs =
googleapis_common_protos protobuf [ googleapis_common_protos protobuf google_auth requests grpcio ];
google_auth requests setuptools grpcio
];
# requires nox checkInputs = [ google_auth mock protobuf pytest-asyncio pytestCheckHook ];
doCheck = false;
checkInputs = [ mock ];
pythonImportsCheck = [ # prevent google directory from shadowing google imports
"google.auth" preCheck = ''
"google.protobuf" rm -r google
"google.api" '';
];
pythonImportsCheck = [ "google.auth" "google.protobuf" "google.api" ];
meta = with lib; { meta = with lib; {
description = "Core Library for Google Client Libraries"; description = "Core Library for Google Client Libraries";
@ -35,7 +30,8 @@ buildPythonPackage rec {
helpers used by all Google API clients. helpers used by all Google API clients.
''; '';
homepage = "https://github.com/googleapis/python-api-core"; homepage = "https://github.com/googleapis/python-api-core";
changelog = "https://github.com/googleapis/python-api-core/blob/v${version}/CHANGELOG.md"; changelog =
"https://github.com/googleapis/python-api-core/blob/v${version}/CHANGELOG.md";
license = licenses.asl20; license = licenses.asl20;
maintainers = with maintainers; [ ]; maintainers = with maintainers; [ ];
}; };