summaryrefslogtreecommitdiff
path: root/var/spack/repos/builtin/packages/py-google-api-python-client/package.py
blob: a70b50e3e6348cb5822848c5f7099ad3f4f81f80 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# Copyright 2013-2023 Lawrence Livermore National Security, LLC and other
# Spack Project Developers. See the top-level COPYRIGHT file for details.
#
# SPDX-License-Identifier: (Apache-2.0 OR MIT)

from spack.package import *


class PyGoogleApiPythonClient(PythonPackage):
    """The Google API Client for Python is a client library for accessing the
    Plus, Moderator, and many other Google APIs."""

    homepage = "https://github.com/google/google-api-python-client/"
    pypi = "google-api-python-client/google-api-python-client-1.7.10.tar.gz"

    license("Apache-2.0")

    version("2.80.0", sha256="51dd62d467da7ad3df63c3f0e6fca84266ce50c2218691204b2e8cd651a0719a")
    version("1.7.10", sha256="2e55a5c7b56233c68945b6804c73e253445933f4d485d4e69e321b38772b9dd6")

    depends_on("py-setuptools", type="build")

    with when("@2:"):
        depends_on("py-httplib2@0.15:0", type=("build", "run"))
        depends_on("py-google-auth@1.19:2", type=("build", "run"))
        depends_on("py-google-auth-httplib2@0.1:", type=("build", "run"))
        depends_on("py-google-api-core@1.31.5:1,2.3.1:2", type=("build", "run"))
        depends_on("py-uritemplate@3.0.1:4", type=("build", "run"))

    with when("@:1"):
        depends_on("py-httplib2@0.9.2:", type=("build", "run"))
        depends_on("py-google-auth@1.4.1:", type=("build", "run"))
        depends_on("py-google-auth-httplib2@0.0.3:", type=("build", "run"))
        depends_on("py-six@1.6.1:", type=("build", "run"))
        depends_on("py-uritemplate@3.0.0:", type=("build", "run"))