2018-07-25 20:26:25 +00:00
|
|
|
#
|
|
|
|
# spec file for package python-social-auth-core
|
|
|
|
#
|
2023-03-17 16:14:39 +00:00
|
|
|
# Copyright (c) 2023 SUSE LLC
|
2018-07-25 20:26:25 +00:00
|
|
|
# Copyright (c) 2017-2018 Matthias Fehring <buschmann23@opensuse.org>
|
|
|
|
#
|
|
|
|
# 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-12-06 09:28:55 +00:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2018-07-25 20:26:25 +00:00
|
|
|
#
|
|
|
|
|
|
|
|
|
2021-03-15 13:59:30 +00:00
|
|
|
%define skip_python2 1
|
2020-12-22 23:05:43 +00:00
|
|
|
%define modname social-core
|
2022-06-14 12:26:54 +00:00
|
|
|
# saml is optional: packages in TW and Leap not compatible
|
|
|
|
%bcond_with saml
|
|
|
|
|
2018-07-25 20:26:25 +00:00
|
|
|
Name: python-social-auth-core
|
2023-04-14 17:22:07 +00:00
|
|
|
Version: 4.4.1
|
2018-07-25 20:26:25 +00:00
|
|
|
Release: 0
|
2018-07-27 08:24:19 +00:00
|
|
|
Summary: Python Social Auth Core
|
2018-07-25 20:26:25 +00:00
|
|
|
License: BSD-3-Clause
|
2022-03-02 16:56:07 +00:00
|
|
|
URL: https://github.com/python-social-auth/social-core
|
2020-12-22 23:05:43 +00:00
|
|
|
Source: https://github.com/python-social-auth/%{modname}/archive/%{version}.tar.gz#/%{modname}-%{version}.tar.gz
|
2021-03-15 13:59:30 +00:00
|
|
|
BuildRequires: %{python_module PyJWT >= 2.0.0}
|
2018-07-25 20:26:25 +00:00
|
|
|
BuildRequires: %{python_module cryptography >= 2.1.1}
|
2021-03-15 13:59:30 +00:00
|
|
|
BuildRequires: %{python_module defusedxml >= 0.5.0}
|
2018-07-25 20:26:25 +00:00
|
|
|
BuildRequires: %{python_module oauthlib >= 1.0.3}
|
2021-03-15 13:59:30 +00:00
|
|
|
BuildRequires: %{python_module python3-openid >= 3.0.10}
|
2018-07-25 20:26:25 +00:00
|
|
|
BuildRequires: %{python_module requests >= 2.9.1}
|
|
|
|
BuildRequires: %{python_module requests-oauthlib >= 0.6.1}
|
|
|
|
BuildRequires: %{python_module setuptools}
|
|
|
|
BuildRequires: ca-certificates
|
|
|
|
BuildRequires: fdupes
|
|
|
|
BuildRequires: python-rpm-macros
|
2022-06-14 12:26:54 +00:00
|
|
|
# SECTION test requirements
|
|
|
|
BuildRequires: %{python_module pytest}
|
|
|
|
BuildRequires: %{python_module httpretty >= 0.9.6}
|
|
|
|
#/SECTION
|
|
|
|
# SECTION optional requirements for tests
|
|
|
|
BuildRequires: %{python_module python-jose >= 3.0.0}
|
|
|
|
%if %{with saml}
|
|
|
|
BuildRequires: %{python_module lxml < 4.7}
|
|
|
|
BuildRequires: %{python_module python3-saml >= 1.2.1}
|
|
|
|
%endif
|
|
|
|
#/SECTION
|
2021-03-15 13:59:30 +00:00
|
|
|
Requires: python-PyJWT >= 2.0.0
|
2018-07-25 20:26:25 +00:00
|
|
|
Requires: python-cryptography >= 2.1.1
|
2022-06-14 12:26:54 +00:00
|
|
|
Requires: python-defusedxml >= 0.5.0
|
2018-08-01 13:38:11 +00:00
|
|
|
Requires: python-oauthlib >= 1.0.3
|
2022-06-14 12:26:54 +00:00
|
|
|
Requires: python-python3-openid >= 3.0.10
|
2018-07-25 20:26:25 +00:00
|
|
|
Requires: python-requests >= 2.9.1
|
|
|
|
Requires: python-requests-oauthlib >= 0.6.1
|
2022-06-14 12:26:54 +00:00
|
|
|
Recommends: python-python-jose >= 3.0.0
|
2018-08-01 13:38:11 +00:00
|
|
|
BuildArch: noarch
|
2018-07-25 20:26:25 +00:00
|
|
|
%python_subpackages
|
|
|
|
|
|
|
|
%description
|
2018-07-27 08:24:19 +00:00
|
|
|
Python Social Auth is a social authentication/registration
|
2018-07-25 20:26:25 +00:00
|
|
|
mechanism with support for several frameworks and auth providers.
|
|
|
|
|
2018-07-27 08:24:19 +00:00
|
|
|
This is the core component of the python-social-auth ecosystem. It
|
2018-07-25 20:26:25 +00:00
|
|
|
implements the common interface to define new authentication backends to
|
2018-07-27 08:24:19 +00:00
|
|
|
third party services, implement integrations with web frameworks and
|
2018-07-25 20:26:25 +00:00
|
|
|
storage solutions.
|
|
|
|
|
|
|
|
%prep
|
2020-12-22 23:05:43 +00:00
|
|
|
%autosetup -p1 -n %{modname}-%{version}
|
2020-08-17 09:09:42 +00:00
|
|
|
|
2018-07-25 20:26:25 +00:00
|
|
|
%build
|
|
|
|
%python_build
|
|
|
|
|
|
|
|
%install
|
|
|
|
%python_install
|
|
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
|
|
|
|
|
|
|
%check
|
2022-06-14 12:26:54 +00:00
|
|
|
%if !%{with saml}
|
|
|
|
donttest+=" or test_saml"
|
|
|
|
%endif
|
|
|
|
%pytest -k "not (dummyprefix $donttest)"
|
2018-07-25 20:26:25 +00:00
|
|
|
|
|
|
|
%files %{python_files}
|
2019-04-11 08:18:53 +00:00
|
|
|
%doc CHANGELOG.md README.md
|
2018-07-25 20:26:25 +00:00
|
|
|
%license LICENSE
|
2022-06-14 12:26:54 +00:00
|
|
|
%{python_sitelib}/social_core
|
|
|
|
%{python_sitelib}/social_auth_core-%{version}*-info
|
2018-07-25 20:26:25 +00:00
|
|
|
|
|
|
|
%changelog
|