File python-requests-auth.spec of Package python-requests-auth

#
# spec file for package python-requests_auth
#
# Copyright (c) 2019 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/


%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name:           python-requests_auth
Version:        4.0.1
Release:        0
License:        MIT
Summary:        Easy Authentication for Requests
Url:            https://github.com/Colin-b/requests_auth
Group:          Development/Languages/Python
Source:         https://github.com/Colin-b/requests_auth/archive/v%{version}.tar.gz
Patch:          ra_relax-python-version-requirements.patch
BuildRequires:  python-rpm-macros
BuildRequires:  %{python_module devel}
BuildRequires:  %{python_module setuptools}
# SECTION test requirements
%ifpython2
BuildRequires:  python-enum34
%endif
BuildRequires:  %{python_module requests >= 2.21.0}
BuildRequires:  %{python_module Flask >= 1.0.2}
BuildRequires:  %{python_module nose >= 1.3.7}
BuildRequires:  %{python_module PyJWT >= 1.6.4}
BuildRequires:  %{python_module responses >= 0.10.3}
# /SECTION
BuildRequires:  fdupes
Requires:       python-requests >= 2.21.0
BuildArch:      noarch

%python_subpackages

%description
Easy Authentication for Requests

%prep
%setup -q -n requests_auth-%{version}
%patch -p1

%build
%python_build

#%%check
#%%python_exec setup.py test

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

%files %{python_files}
%{python_sitelib}/*

%changelog