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