File python-django-allauth.spec of Package python-django-allauth

#
# spec file for package python-django-allauth
#
# Copyright (c) 2025 SUSE LLC
#
# 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/
#


Name:           python-django-allauth
Version:        65.11.0
Release:        0
Summary:        Django authentication, registration, account management
License:        MIT
URL:            https://allauth.org
Source0:        https://files.pythonhosted.org/packages/source/d/django-allauth/django_allauth-%{version}.tar.gz
Source1:        rpmlintrc
BuildRequires:  python-rpm-macros
BuildRequires:  %{python_module pip}
BuildRequires:  %{python_module setuptools >= 40.8.0}
# SECTION test requirements
BuildRequires:  %{python_module asgiref >= 3.8.1}
BuildRequires:  %{python_module Django >= 4.2.16}
BuildRequires:  %{python_module Pillow >= 9.0}
BuildRequires:  %{python_module pytest >= 7.4}
BuildRequires:  %{python_module pytest-asyncio >= 0.23.8}
BuildRequires:  %{python_module pytest-django >= 4.5.2}
# /SECTION
BuildRequires:  fdupes
Requires:       python-asgiref >= 3.8.1
Requires:       python-Django >= 4.2.16
Suggests:       python-oauthlib >= 3.2.2
Suggests:       python-pyjwt >= 2.0
Suggests:       python-qrcode >= 7.0.0
Suggests:       python-fido2 >= 1.1.2
Suggests:       python-python3-openid >= 3.0.8
Suggests:       python-python3-saml >= 1.15.0
Suggests:       python-requests-oauthlib >= 0.3.0
Suggests:       python-requests >= 2.0.0
Suggests:       python-pyjwt >= 2.0
Suggests:       python-python3-openid >= 3.0.8
BuildArch:      noarch
%python_subpackages

%description
Integrated set of Django applications addressing authentication, registration, account management as well as 3rd party (social) account authentication.

%package headless
Summary:        Django allauth - Headless
Requires:       %{name} = %{version}-%{release}
Requires:       python-PyYAML >= 6
%description headless
Python extra dependency `headless-spec` for python-django-allauth.

%package idp-oidc
Summary:        Django allauth - Identity Provider
Requires:       %{name} = %{version}-%{release}
Requires:       python-oauthlib >= 3.3.0
Requires:       python-PyJWT >= 2.0
Requires:       python-cryptography
%description idp-oidc
Python extra dependency `idp-oidc` for python-django-allauth.

%package mfa
Summary:        Django allauth - Two-Factor Authentication
Requires:       %{name} = %{version}-%{release}
Requires:       python-qrcode >= 7.0.0
Requires:       python-fido2 >= 1.1.2
%description mfa
Python extra dependency `mfa` for python-django-allauth.

%package openid
Summary:        Django allauth - OpenID provider
Requires:       %{name} = %{version}-%{release}
Requires:       python-python3-openid >= 3.0.8
%description openid
Python extra dependency `openid` for python-django-allauth.

%package saml
Summary:        Django allauth - Saml provider
Requires:       %{name} = %{version}-%{release}
Requires:       python-python3-saml >= 1.15.0
%description saml
Python extra dependency `saml` for python-django-allauth.

%package steam
Summary:        Django allauth - Steam provider (OpenID-compliant)
Requires:       %{name} = %{version}-%{release}
Requires:       python-python3-openid >= 3.0.8
%description steam
Python extra dependency `steam` for python-django-allauth.

%package socialaccount
Summary:        Django allauth - Third-party ("social") accounts
Requires:       %{name} = %{version}-%{release}
Requires:       python-oauthlib >= 3.3.0
Requires:       python-PyJWT >= 2.0
Requires:       python-cryptography
Requires:       python-requests >= 2.0.0
%description socialaccount
Python extra dependency `socialaccount` for python-django-allauth.

%prep
%autosetup -p1 -n django_allauth-%{version}

%build
%pyproject_wheel

%install
%pyproject_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}

%files %{python_files}
%doc ChangeLog.rst README.rst
%license LICENSE AUTHORS
%{python_sitelib}/allauth
%{python_sitelib}/django_allauth-%{version}.dist-info

%files %{python_files idp-oidc}
%files %{python_files mfa}
%files %{python_files openid}
%files %{python_files saml}
%files %{python_files steam}
%files %{python_files socialaccount}
%files %{python_files headless}

%changelog
openSUSE Build Service is sponsored by