2021-01-05 10:02:48 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
2021-01-06 09:46:48 +00:00
|
|
|
, google-auth
|
2021-03-05 15:20:42 +00:00
|
|
|
, googleapis-common-protos
|
2021-01-05 10:02:48 +00:00
|
|
|
, grpcio
|
|
|
|
, protobuf
|
|
|
|
, pytz
|
|
|
|
, requests
|
|
|
|
, mock
|
|
|
|
, pytest
|
|
|
|
, pytest-asyncio
|
|
|
|
, pytestCheckHook
|
|
|
|
}:
|
2017-12-20 22:47:52 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "google-api-core";
|
2021-04-05 04:03:46 +01:00
|
|
|
version = "1.26.3";
|
2017-12-20 22:47:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2021-04-05 04:03:46 +01:00
|
|
|
sha256 = "sha256-uRQ0XH6iOGEWJpOidwO6uASlVQT35umryv8XTYDfMqw=";
|
2017-12-20 22:47:52 +00:00
|
|
|
};
|
|
|
|
|
2021-01-05 10:02:48 +00:00
|
|
|
propagatedBuildInputs = [
|
2021-03-05 15:20:42 +00:00
|
|
|
googleapis-common-protos
|
2021-01-06 09:46:48 +00:00
|
|
|
google-auth
|
2021-01-05 10:02:48 +00:00
|
|
|
grpcio
|
|
|
|
protobuf
|
|
|
|
pytz
|
|
|
|
requests
|
|
|
|
];
|
2017-12-20 22:47:52 +00:00
|
|
|
|
2021-01-05 10:02:48 +00:00
|
|
|
checkInputs = [ mock pytest-asyncio pytestCheckHook ];
|
2019-10-25 07:24:37 +01:00
|
|
|
|
2020-11-03 01:14:27 +00:00
|
|
|
# prevent google directory from shadowing google imports
|
|
|
|
preCheck = ''
|
|
|
|
rm -r google
|
|
|
|
'';
|
|
|
|
|
2021-01-05 10:02:48 +00:00
|
|
|
pythonImportsCheck = [ "google.api_core" ];
|
2017-12-20 22:47:52 +00:00
|
|
|
|
2018-04-06 20:22:26 +01:00
|
|
|
meta = with lib; {
|
2020-06-03 14:42:54 +01:00
|
|
|
description = "Core Library for Google Client Libraries";
|
|
|
|
longDescription = ''
|
|
|
|
This library is not meant to stand-alone. Instead it defines common
|
|
|
|
helpers used by all Google API clients.
|
|
|
|
'';
|
|
|
|
homepage = "https://github.com/googleapis/python-api-core";
|
2020-11-03 01:14:27 +00:00
|
|
|
changelog =
|
|
|
|
"https://github.com/googleapis/python-api-core/blob/v${version}/CHANGELOG.md";
|
2017-12-20 22:47:52 +00:00
|
|
|
license = licenses.asl20;
|
2021-01-05 10:02:48 +00:00
|
|
|
maintainers = with maintainers; [ SuperSandro2000 ];
|
2017-12-20 22:47:52 +00:00
|
|
|
};
|
|
|
|
}
|