1{
2 lib,
3 buildPythonPackage,
4 fetchPypi,
5 google-auth,
6 google-auth-httplib2,
7 google-api-core,
8 httplib2,
9 uritemplate,
10 setuptools,
11 pythonOlder,
12}:
13
14buildPythonPackage rec {
15 pname = "google-api-python-client";
16 version = "2.166.0";
17 pyproject = true;
18
19 disabled = pythonOlder "3.7";
20
21 src = fetchPypi {
22 pname = "google_api_python_client";
23 inherit version;
24 hash = "sha256-uM+EO9nXNsE0rvds8dx6R8koOi7yQme5cge53UOzDvc=";
25 };
26
27 build-system = [ setuptools ];
28
29 dependencies = [
30 google-auth
31 google-auth-httplib2
32 google-api-core
33 httplib2
34 uritemplate
35 ];
36
37 # No tests included in archive
38 doCheck = false;
39
40 pythonImportsCheck = [ "googleapiclient" ];
41
42 meta = with lib; {
43 description = "Official Python client library for Google's discovery based APIs";
44 longDescription = ''
45 These client libraries are officially supported by Google. However, the
46 libraries are considered complete and are in maintenance mode. This means
47 that we will address critical bugs and security issues but will not add
48 any new features.
49 '';
50 homepage = "https://github.com/google/google-api-python-client";
51 changelog = "https://github.com/googleapis/google-api-python-client/releases/tag/v${version}";
52 license = licenses.asl20;
53 maintainers = [ ];
54 };
55}