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

#
# spec file for package python-python-social-auth
#
# Copyright (c) 2017 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/
#


Name:           python-python-social-auth
Version:        0.2.21
Release:        0
Summary:        Python Social Auth
License:        BSD-3-Clause
Group:          Development/Languages/Python
Url:            http://psa.matiasaguirre.net/
Source:         https://pypi.python.org/packages/source/p/python-social-auth/python-social-auth-%{version}.tar.gz
%if 0%{?suse_version} > 1110
BuildRequires:  ca-certificates
%endif
BuildRequires:  python-PyJWT
BuildRequires:  python-coverage
BuildRequires:  python-devel
BuildRequires:  python-httpretty
BuildRequires:  python-lxml
BuildRequires:  python-mock
BuildRequires:  python-nose
BuildRequires:  python-oauthlib
BuildRequires:  python-openid
BuildRequires:  python-python-saml
BuildRequires:  python-rednose
BuildRequires:  python-requests
BuildRequires:  python-requests-oauthlib
BuildRequires:  python-setuptools
BuildRequires:  python-six
BuildRequires:  python-sure
BuildRequires:  python-unittest2
Requires:       python-PyJWT
Requires:       python-oauthlib
Requires:       python-openid
Requires:       python-requests
Requires:       python-requests-oauthlib
Requires:       python-six
Provides:       python-social-auth
%py_requires
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
%if 0%{?suse_version} && 0%{?suse_version} <= 1110
%{!?python_sitelib: %global python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
%else
BuildArch:      noarch
%endif

%description
Python Social Auth is an easy-to-setup social authentication/registration
mechanism with support for several frameworks and auth providers.

Crafted using base code from django-social-auth, it implements a common interface
to define new authentication providers from third parties, and to bring support
for more frameworks and ORMs.

%prep
%setup -q -n python-social-auth-%{version}

%build
python setup.py build

%install
python setup.py install --prefix=%{_prefix} --root=%{buildroot}

%check
# FIXME: crashes!
#nosetests --where=social/tests

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

%changelog
openSUSE Build Service is sponsored by