forked from pool/python-social-auth-core
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-social-auth-core?expand=0&rev=53
98 lines
3.3 KiB
RPMSpec
98 lines
3.3 KiB
RPMSpec
#
|
|
# spec file for package python-social-auth-core
|
|
#
|
|
# Copyright (c) 2025 SUSE LLC
|
|
# 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.
|
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
|
#
|
|
|
|
|
|
%define modname social-core
|
|
# saml is optional: packages in TW and Leap not compatible
|
|
%bcond_with saml
|
|
%{?sle15_python_module_pythons}
|
|
Name: python-social-auth-core
|
|
Version: 4.5.4
|
|
Release: 0
|
|
Summary: Python Social Auth Core
|
|
License: BSD-3-Clause
|
|
URL: https://github.com/python-social-auth/social-core
|
|
Source: https://github.com/python-social-auth/%{modname}/archive/%{version}.tar.gz#/%{modname}-%{version}.tar.gz
|
|
BuildRequires: %{python_module PyJWT >= 2.7.0}
|
|
BuildRequires: %{python_module cryptography >= 2.1.1}
|
|
BuildRequires: %{python_module defusedxml >= 0.5.0}
|
|
BuildRequires: %{python_module oauthlib >= 1.0.3}
|
|
BuildRequires: %{python_module pip}
|
|
BuildRequires: %{python_module python3-openid >= 3.0.10}
|
|
BuildRequires: %{python_module requests >= 2.9.1}
|
|
BuildRequires: %{python_module requests-oauthlib >= 0.6.1}
|
|
BuildRequires: %{python_module setuptools}
|
|
BuildRequires: %{python_module wheel}
|
|
BuildRequires: ca-certificates
|
|
BuildRequires: fdupes
|
|
BuildRequires: python-rpm-macros
|
|
# 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
|
|
Requires: python-PyJWT >= 2.0.0
|
|
Requires: python-cryptography >= 2.1.1
|
|
Requires: python-defusedxml >= 0.5.0
|
|
Requires: python-oauthlib >= 1.0.3
|
|
Requires: python-python3-openid >= 3.0.10
|
|
Requires: python-requests >= 2.9.1
|
|
Requires: python-requests-oauthlib >= 0.6.1
|
|
Recommends: python-python-jose >= 3.0.0
|
|
BuildArch: noarch
|
|
%python_subpackages
|
|
|
|
%description
|
|
Python Social Auth is a social authentication/registration
|
|
mechanism with support for several frameworks and auth providers.
|
|
|
|
This is the core component of the python-social-auth ecosystem. It
|
|
implements the common interface to define new authentication backends to
|
|
third party services, implement integrations with web frameworks and
|
|
storage solutions.
|
|
|
|
%prep
|
|
%autosetup -p1 -n %{modname}-%{version}
|
|
|
|
%build
|
|
%pyproject_wheel
|
|
|
|
%install
|
|
%pyproject_install
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
|
|
|
%check
|
|
%if !%{with saml}
|
|
donttest+=" or test_saml"
|
|
%endif
|
|
%pytest -k "not (dummyprefix $donttest)"
|
|
|
|
%files %{python_files}
|
|
%doc CHANGELOG.md README.md
|
|
%license LICENSE
|
|
%{python_sitelib}/social_core
|
|
%{python_sitelib}/social_auth_core-%{version}.dist-info
|
|
|
|
%changelog
|