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

#
# spec file for package python-Flask-Dance
#
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
#
# 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 http://bugs.opensuse.org/
#


%bcond_without tests

%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name:           python-Flask-Dance
Version:        0.14.0
Release:        0
Summary:        Doing the OAuth dance with style using Flask, requests, and oauthlib
License:        MIT
Group:          Development/Languages/Python
Url:            https://github.com/singingwolfboy/flask-dance
Source:         https://files.pythonhosted.org/packages/source/F/Flask-Dance/Flask-Dance-%{version}.tar.gz
BuildRequires:  %{python_module devel}
BuildRequires:  %{python_module setuptools}
BuildRequires:  python-rpm-macros
# test requirements
%if %{with tests}
BuildRequires:  %{python_module Flask >= 0.7}
BuildRequires:  %{python_module Flask-Cache}
BuildRequires:  %{python_module Flask-Login}
BuildRequires:  %{python_module Flask-SQLAlchemy}
BuildRequires:  %{python_module SQLAlchemy >= 0.9}
BuildRequires:  %{python_module SQLAlchemy-Utils}
BuildRequires:  %{python_module Sphinx}
BuildRequires:  %{python_module URLObject}
BuildRequires:  %{python_module freezegun}
BuildRequires:  %{python_module lazy}
BuildRequires:  %{python_module mock}
BuildRequires:  %{python_module oauthlib}
BuildRequires:  %{python_module pytest-cov}
BuildRequires:  %{python_module pytest}
BuildRequires:  %{python_module requests-oauthlib >= 0.7.0}
BuildRequires:  %{python_module requests}
BuildRequires:  %{python_module responses}
BuildRequires:  %{python_module sphinxcontrib-seqdiag}
%endif
# end test requirements
BuildRequires:  fdupes
Requires:       python-Flask >= 0.7
Requires:       python-URLObject
Requires:       python-lazy
Requires:       python-oauthlib
Requires:       python-requests >= 2.0
Requires:       python-requests-oauthlib >= 0.7.0
Requires:       python-six
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildArch:      noarch
%python_subpackages
%description
Doing the OAuth dance with style using Flask, requests, and
oauthlib. Currently, only OAuth consumers are supported, but this
project could easily support OAuth providers in the future, as
well. The full documentation for this project is hosted on
ReadTheDocs, but this README will give you a taste of the features.

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

%build
%python_build

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

%if %{with tests}
%check
%python_exec setup.py test
%endif

%files %{python_files}
%defattr(-,root,root,-)
%doc README.rst CHANGELOG.rst
%{python_sitelib}/*

%changelog
openSUSE Build Service is sponsored by