nixpkgs/pkgs/development/python-modules/google-api-core/default.nix

56 lines
1.2 KiB
Nix
Raw Normal View History

{ lib
, buildPythonPackage
, fetchPypi
, google-auth
, googleapis_common_protos
, grpcio
, protobuf
, pytz
, requests
, mock
, pytest
, pytest-asyncio
, pytestCheckHook
}:
2017-12-20 22:47:52 +00:00
buildPythonPackage rec {
pname = "google-api-core";
version = "1.25.1";
2017-12-20 22:47:52 +00:00
src = fetchPypi {
inherit pname version;
sha256 = "0e152ec37b8481d1be1258d95844a5a7031cd3d83d7c7046d9e9b2d807042440";
2017-12-20 22:47:52 +00:00
};
propagatedBuildInputs = [
googleapis_common_protos
google-auth
grpcio
protobuf
pytz
requests
];
2017-12-20 22:47:52 +00:00
checkInputs = [ mock pytest-asyncio pytestCheckHook ];
# prevent google directory from shadowing google imports
preCheck = ''
rm -r google
'';
pythonImportsCheck = [ "google.api_core" ];
2017-12-20 22:47:52 +00:00
2018-04-06 20:22:26 +01:00
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";
2017-12-20 22:47:52 +00:00
license = licenses.asl20;
maintainers = with maintainers; [ SuperSandro2000 ];
2017-12-20 22:47:52 +00:00
};
}