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

#
# spec file for package python-django-avatar
#
# 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/
#


%{?sle15_python_module_pythons}
Name:           python-django-avatar
Version:        8.0.1
Release:        0
Summary:        Django-avatar package
License:        BSD-3-Clause
URL:            https://github.com/grantmcconnaughey/django-avatar/
Source:         https://github.com/jazzband/django-avatar/archive/refs/tags/v%{version}.tar.gz#/django-avatar-%{version}.tar.gz
BuildRequires:  %{python_module Django >= 4.0}
BuildRequires:  %{python_module Pillow >= 8.4}
BuildRequires:  %{python_module django-appconf >= 1.0.5}
BuildRequires:  %{python_module dnspython >= 2.3.0}
BuildRequires:  %{python_module pip}
BuildRequires:  %{python_module python-magic}
BuildRequires:  %{python_module setuptools}
BuildRequires:  fdupes
BuildRequires:  python-rpm-macros
Requires:       python-Django >= 4.0
Requires:       python-Pillow >= 8.4
Requires:       python-django-appconf >= 1.0.5
Requires:       python-dnspython >= 2.3.0
BuildArch:      noarch
%python_subpackages

%description
Django-avatar is a reusable application for handling user avatars.  It has the
ability to default to Gravatar_ if no avatar is found for a certain user.
Django-avatar automatically generates thumbnails and stores them to your default
file storage backend for retrieval later.

%prep
%autosetup -p1 -n django-avatar-%{version}

%build
%pyproject_wheel

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

%check
%python_expand %{_bindir}/django-admin-%{$python_bin_suffix} test --settings=tests.settings --pythonpath=`pwd`

%files %{python_files}
%license LICENSE.txt
%doc README.rst
%{python_sitelib}/avatar
%{python_sitelib}/django_avatar-%{version}.dist-info

%changelog
openSUSE Build Service is sponsored by