2017-11-19 20:18:26 +01:00
|
|
|
|
#
|
|
|
|
|
# spec file for package python-google-auth
|
|
|
|
|
#
|
2022-01-28 14:16:45 +01:00
|
|
|
|
# Copyright (c) 2022 SUSE LLC
|
2017-11-19 20:18:26 +01:00
|
|
|
|
#
|
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
|
2018-09-12 22:02:07 +02:00
|
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2017-11-19 20:18:26 +01:00
|
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
2021-01-06 15:16:09 +01:00
|
|
|
|
%define skip_python2 1
|
|
|
|
|
|
2017-11-19 20:18:26 +01:00
|
|
|
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
|
|
|
|
Name: python-google-auth
|
2022-01-28 14:16:45 +01:00
|
|
|
|
Version: 2.5.0
|
2017-11-19 20:18:26 +01:00
|
|
|
|
Release: 0
|
|
|
|
|
Summary: Google Authentication Library
|
|
|
|
|
License: Apache-2.0
|
2018-05-08 12:27:28 +02:00
|
|
|
|
URL: https://github.com/GoogleCloudPlatform/google-auth-library-python
|
|
|
|
|
Source: https://files.pythonhosted.org/packages/source/g/google-auth/google-auth-%{version}.tar.gz
|
2021-08-20 15:11:54 +02:00
|
|
|
|
Patch0: ga_python-executable-name.patch
|
2020-04-28 10:00:21 +02:00
|
|
|
|
BuildRequires: %{python_module cachetools >= 2.0.0}
|
2021-01-06 15:16:09 +01:00
|
|
|
|
BuildRequires: %{python_module pyasn1-modules >= 0.2.1}
|
|
|
|
|
BuildRequires: %{python_module rsa >= 3.1.4}
|
|
|
|
|
BuildRequires: %{python_module setuptools >= 40.3.0}
|
|
|
|
|
BuildRequires: %{python_module six >= 1.9.0}
|
|
|
|
|
# START TESTING SECTION
|
2022-01-28 14:16:45 +01:00
|
|
|
|
BuildRequires: %{python_module aiohttp >= 3.6.2}
|
2021-01-06 15:16:09 +01:00
|
|
|
|
BuildRequires: %{python_module Flask}
|
2020-04-28 10:00:21 +02:00
|
|
|
|
BuildRequires: %{python_module freezegun}
|
2018-05-08 12:27:28 +02:00
|
|
|
|
BuildRequires: %{python_module mock}
|
|
|
|
|
BuildRequires: %{python_module oauth2client-gce}
|
|
|
|
|
BuildRequires: %{python_module oauth2client}
|
2022-01-28 14:16:45 +01:00
|
|
|
|
BuildRequires: %{python_module pyOpenSSL >= 20.0.0}
|
2018-05-08 12:27:28 +02:00
|
|
|
|
BuildRequires: %{python_module pytest-localserver}
|
|
|
|
|
BuildRequires: %{python_module pytest}
|
2022-01-28 14:16:45 +01:00
|
|
|
|
BuildRequires: %{python_module pyu2f >= 0.1.5}
|
|
|
|
|
BuildRequires: %{python_module requests >= 2.20.0}
|
2020-04-28 10:00:21 +02:00
|
|
|
|
BuildRequires: %{python_module responses}
|
2021-01-06 15:16:09 +01:00
|
|
|
|
BuildRequires: %{python_module urllib3}
|
|
|
|
|
# END TESTING SECTION
|
2017-11-19 20:18:26 +01:00
|
|
|
|
BuildRequires: fdupes
|
|
|
|
|
BuildRequires: python-rpm-macros
|
2020-04-28 10:00:21 +02:00
|
|
|
|
Requires: python-cachetools >= 2.0.0
|
|
|
|
|
Requires: python-pyasn1-modules >= 0.2.1
|
|
|
|
|
Requires: python-rsa >= 3.1.4
|
|
|
|
|
Requires: python-setuptools >= 40.3.0
|
|
|
|
|
Requires: python-six >= 1.9.0
|
2022-01-28 14:16:45 +01:00
|
|
|
|
Recommends: python-aiohttp >= 3.6.2
|
|
|
|
|
Recommends: python-pyOpenSSL >= 20.0.0
|
|
|
|
|
Recommends: python-pyu2f >= 0.1.5
|
|
|
|
|
Recommends: python-requests >= 2.20.0
|
2017-11-19 20:18:26 +01:00
|
|
|
|
BuildArch: noarch
|
|
|
|
|
%python_subpackages
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
|
This library simplifies using Google’s various server-to-server authentication mechanisms to access Google APIs.
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
|
%setup -q -n google-auth-%{version}
|
2021-08-20 15:11:54 +02:00
|
|
|
|
%patch0 -p1
|
2017-11-19 20:18:26 +01:00
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
%python_build
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
|
%python_install
|
2018-05-08 12:27:28 +02:00
|
|
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
|
|
|
|
|
|
|
|
|
%check
|
2019-03-15 12:33:48 +01:00
|
|
|
|
%pytest
|
2017-11-19 20:18:26 +01:00
|
|
|
|
|
|
|
|
|
%files %{python_files}
|
2018-05-08 12:27:28 +02:00
|
|
|
|
%license LICENSE
|
|
|
|
|
%doc README.rst
|
2017-11-19 20:18:26 +01:00
|
|
|
|
%{python_sitelib}/*
|
|
|
|
|
|
|
|
|
|
%changelog
|