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