spack/var/spack/repos/builtin/packages/py-google-auth/package.py
iarspider 02e4d4e546
Add checksum for py-google-auth 2.11.0, py-cachetools 5.2.0 (#32791)
* Add checksum for py-google-auth 2.11.0

* Swap when and type

* Update package.py
2022-09-24 15:27:19 -05:00

33 lines
1.7 KiB
Python

# Copyright 2013-2022 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 PyGoogleAuth(PythonPackage):
"""This library simplifies using Google's various server-to-server
authentication mechanisms to access Google APIs."""
homepage = "https://github.com/GoogleCloudPlatform/google-auth-library-python"
pypi = "google-auth/google-auth-1.6.3.tar.gz"
version("2.11.0", sha256="ed65ecf9f681832298e29328e1ef0a3676e3732b2e56f41532d45f70a22de0fb")
version("2.3.2", sha256="2dc5218ee1192f9d67147cece18f47a929a9ef746cb69c50ab5ff5cfc983647b")
version("1.6.3", sha256="0f7c6a64927d34c1a474da92cfc59e552a5d3b940d3266606c6a28b72888b9e4")
depends_on("python@2.7:2.8,3.4:", type=("build", "run"))
depends_on("python@2.7:2.8,3.6:", when="@1.24:", type=("build", "run"))
depends_on("py-setuptools", type="build")
depends_on("py-setuptools@40.3.0:", when="@2.3.2:", type="build")
depends_on("py-pyasn1-modules@0.2.1:", type=("build", "run"))
depends_on("py-rsa@3.1.4:", type=("build", "run"))
depends_on("py-rsa@3.1.4:4", when="@2.3.2: ^python@3.6:", type=("build", "run"))
depends_on("py-rsa@:4.5", when="@2.3.2: ^python@:3.5", type=("build", "run"))
depends_on("py-six@1.9.0:", type=("build", "run"))
depends_on("py-cachetools@2.0.0:", type=("build", "run"))
depends_on("py-cachetools@2.0.0:4", when="@2.3.2:2.3", type=("build", "run"))
depends_on("py-cachetools@2.0.0:5", when="@2.11.0:", type=("build", "run"))
depends_on("py-enum34@1.1.10:", when="@2.3.2: ^python@:3.3", type=("build", "run"))