File python-Flask-User.spec of Package python-Flask-User

#
# spec file for package python-Flask-User
#
# Copyright (c) 2021, Martin Hauke <mardnh@gmx.de>
#
# 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/
#


%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name:           python-Flask-User
Version:        1.0.2.2
Release:        0
Summary:        Customizable User Authentication & User Management: Register, Confirm, Login, Change username/password, Forgot password and more
License:        MIT
URL:            https://github.com/lingthio/Flask-User
Source:         https://files.pythonhosted.org/packages/source/F/Flask-User/Flask-User-%{version}.tar.gz
BuildRequires:  %{python_module Flask-Login}
BuildRequires:  %{python_module setuptools}
BuildRequires:  fdupes
BuildRequires:  python-rpm-macros
Requires:       python-Flask-BabelEx
Requires:       python-Flask >= 0.9
Requires:       python-Flask-Login >= 0.2
Requires:       python-Flask-Mail >= 0.9
Requires:       python-Flask-SQLAlchemy >= 1.0
Requires:       python-Flask-Sendmail
Requires:       python-Flask-WTF >= 0.9
Requires:       python-bcrypt >= 2.0
Requires:       python-cryptography >= 1.6
Requires:       python-passlib >= 1.7
BuildArch:      noarch
# SECTION test requirements
BuildRequires:  %{python_module Flask >= 0.9}
BuildRequires:  %{python_module Flask-BabelEx}
BuildRequires:  %{python_module Flask-Login >= 0.2}
BuildRequires:  %{python_module Flask-Mail >= 0.9}
BuildRequires:  %{python_module Flask-SQLAlchemy >= 1.0}
BuildRequires:  %{python_module Flask-WTF >= 0.9}
BuildRequires:  %{python_module Flask-Sendmail}
BuildRequires:  %{python_module bcrypt >= 2.0}
BuildRequires:  %{python_module cryptography >= 1.6}
BuildRequires:  %{python_module passlib >= 1.7}
BuildRequires:  %{python_module pytest}
#BuildRequires:  %%{python_module sendgrid}
# /SECTION
%python_subpackages

%description
Customizable User Authentication & User Management: Register, Confirm, Login, Change username/password, Forgot password and more.

%prep
%setup -q -n Flask-User-%{version}

%build
%python_build

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

%check
# disabled for now - needs access to SendGrid online services no available in OBS
#%%pytest

%files %{python_files}
%license LICENSE.txt
%doc AUTHORS.rst CHANGES.rst README.rst
%{python_sitelib}/*

%changelog
openSUSE Build Service is sponsored by