summaryrefslogtreecommitdiff
path: root/var/spack/repos/builtin/packages/py-google-auth-oauthlib/package.py
blob: b100b4fbe01375cdd78522a82e9c4444883399c5 (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
# Copyright 2013-2024 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 PyGoogleAuthOauthlib(PythonPackage):
    """This library provides oauthlib integration with google-auth."""

    homepage = "https://github.com/googleapis/google-auth-library-python-oauthlib"
    pypi = "google-auth-oauthlib/google-auth-oauthlib-0.4.1.tar.gz"

    license("Apache-2.0")

    version("0.5.2", sha256="d5e98a71203330699f92a26bc08847a92e8c3b1b8d82a021f1af34164db143ae")
    version("0.4.6", sha256="a90a072f6993f2c327067bf65270046384cda5a8ecb20b94ea9a687f1f233a7a")
    version("0.4.1", sha256="88d2cd115e3391eb85e1243ac6902e76e77c5fe438b7276b297fbe68015458dd")

    depends_on("python@2.7:2.8,3.4:", type=("build", "run"))
    depends_on("python@3.6:", type=("build", "run"), when="@0.4.6:")
    depends_on("py-setuptools", type="build")
    depends_on("py-google-auth", type=("build", "run"))
    depends_on("py-google-auth@1.0.0:", type=("build", "run"), when="@0.4.6:")
    depends_on("py-requests-oauthlib@0.7.0:", type=("build", "run"))