54 lines
1.2 KiB
Nix
54 lines
1.2 KiB
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, google-auth
|
|
, googleapis-common-protos
|
|
, grpcio
|
|
, protobuf
|
|
, proto-plus
|
|
, requests
|
|
, mock
|
|
, pytest-asyncio
|
|
, pytestCheckHook
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "google-api-core";
|
|
version = "2.1.0";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "sha256-XsJ7lCs00EVZy/NnRDC7g/w9dOfTK4u9McRGbnF0C4M=";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
googleapis-common-protos
|
|
google-auth
|
|
grpcio
|
|
protobuf
|
|
proto-plus
|
|
requests
|
|
];
|
|
|
|
checkInputs = [ mock pytest-asyncio pytestCheckHook ];
|
|
|
|
# prevent google directory from shadowing google imports
|
|
preCheck = ''
|
|
rm -r google
|
|
'';
|
|
|
|
pythonImportsCheck = [ "google.api_core" ];
|
|
|
|
meta = with lib; {
|
|
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";
|
|
changelog = "https://github.com/googleapis/python-api-core/blob/v${version}/CHANGELOG.md";
|
|
license = licenses.asl20;
|
|
maintainers = with maintainers; [ SuperSandro2000 ];
|
|
};
|
|
}
|