Merge pull request #119126 from fabaff/pycomfoconnect
[NixPkgs.git] / pkgs / development / python-modules / google-api-core / default.nix
blobc24419b01e28010b14cbf609fac0db908609f116
1 { lib
2 , buildPythonPackage
3 , fetchPypi
4 , google-auth
5 , googleapis-common-protos
6 , grpcio
7 , protobuf
8 , pytz
9 , requests
10 , mock
11 , pytest
12 , pytest-asyncio
13 , pytestCheckHook
16 buildPythonPackage rec {
17   pname = "google-api-core";
18   version = "1.26.3";
20   src = fetchPypi {
21     inherit pname version;
22     sha256 = "sha256-uRQ0XH6iOGEWJpOidwO6uASlVQT35umryv8XTYDfMqw=";
23   };
25   propagatedBuildInputs = [
26     googleapis-common-protos
27     google-auth
28     grpcio
29     protobuf
30     pytz
31     requests
32   ];
34   checkInputs = [ mock pytest-asyncio pytestCheckHook ];
36   # prevent google directory from shadowing google imports
37   preCheck = ''
38     rm -r google
39   '';
41   pythonImportsCheck = [ "google.api_core" ];
43   meta = with lib; {
44     description = "Core Library for Google Client Libraries";
45     longDescription = ''
46       This library is not meant to stand-alone. Instead it defines common
47       helpers used by all Google API clients.
48     '';
49     homepage = "https://github.com/googleapis/python-api-core";
50     changelog =
51       "https://github.com/googleapis/python-api-core/blob/v${version}/CHANGELOG.md";
52     license = licenses.asl20;
53     maintainers = with maintainers; [ SuperSandro2000 ];
54   };