2018-07-25 20:26:25 +00:00
|
|
|
#
|
|
|
|
# spec file for package python-social-auth-core
|
|
|
|
#
|
2020-03-27 15:13:42 +00:00
|
|
|
# Copyright (c) 2020 SUSE LLC
|
2018-07-25 20:26:25 +00:00
|
|
|
# Copyright (c) 2017-2018 Matthias Fehring <buschmann23@opensuse.org>
|
|
|
|
#
|
|
|
|
# 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.
|
|
|
|
|
2018-12-06 09:28:55 +00:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2018-07-25 20:26:25 +00:00
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
|
|
|
Name: python-social-auth-core
|
2020-04-17 08:20:32 +00:00
|
|
|
Version: 3.3.3
|
2018-07-25 20:26:25 +00:00
|
|
|
Release: 0
|
2018-07-27 08:24:19 +00:00
|
|
|
Summary: Python Social Auth Core
|
2018-07-25 20:26:25 +00:00
|
|
|
License: BSD-3-Clause
|
|
|
|
Group: Development/Languages/Python
|
2018-08-01 13:38:11 +00:00
|
|
|
URL: https://github.com/python-social-auth/social-core
|
2018-07-25 20:26:25 +00:00
|
|
|
Source: https://files.pythonhosted.org/packages/source/s/social-auth-core/social-auth-core-%{version}.tar.gz
|
2019-04-11 08:18:53 +00:00
|
|
|
# Missing test data https://github.com/python-social-auth/social-core/pull/351
|
|
|
|
Source1: https://raw.githubusercontent.com/python-social-auth/social-core/master/social_core/tests/backends/data/saml_config.json
|
|
|
|
Patch0: remove-unittest2.patch
|
2019-04-03 08:44:17 +00:00
|
|
|
BuildRequires: %{python_module PyJWT >= 1.4.0}
|
2020-03-27 15:13:42 +00:00
|
|
|
BuildRequires: %{python_module Unidecode >= 1.1.1}
|
2018-08-01 13:38:11 +00:00
|
|
|
BuildRequires: %{python_module coverage >= 3.6}
|
2018-07-25 20:26:25 +00:00
|
|
|
BuildRequires: %{python_module cryptography >= 2.1.1}
|
2018-08-01 13:38:11 +00:00
|
|
|
BuildRequires: %{python_module httpretty}
|
|
|
|
BuildRequires: %{python_module mock}
|
|
|
|
BuildRequires: %{python_module nose >= 1.2.1}
|
2018-07-25 20:26:25 +00:00
|
|
|
BuildRequires: %{python_module oauthlib >= 1.0.3}
|
2020-03-27 15:13:42 +00:00
|
|
|
BuildRequires: %{python_module pytest}
|
2019-04-02 10:10:22 +00:00
|
|
|
BuildRequires: %{python_module python-jose >= 3.0.0}
|
2019-04-11 08:18:53 +00:00
|
|
|
BuildRequires: %{python_module python3-saml}
|
2018-08-01 13:38:11 +00:00
|
|
|
BuildRequires: %{python_module rednose >= 0.4.1}
|
2018-07-25 20:26:25 +00:00
|
|
|
BuildRequires: %{python_module requests >= 2.9.1}
|
|
|
|
BuildRequires: %{python_module requests-oauthlib >= 0.6.1}
|
|
|
|
BuildRequires: %{python_module setuptools}
|
|
|
|
BuildRequires: %{python_module six >= 1.10.0}
|
|
|
|
BuildRequires: ca-certificates
|
|
|
|
BuildRequires: fdupes
|
|
|
|
BuildRequires: python-rpm-macros
|
|
|
|
BuildRequires: python2-python-openid >= 2.2.5
|
|
|
|
BuildRequires: python3-defusedxml >= 0.5.0
|
|
|
|
BuildRequires: python3-python3-openid >= 3.0.10
|
2019-04-03 08:44:17 +00:00
|
|
|
Requires: python-PyJWT >= 1.4.0
|
2020-03-27 15:13:42 +00:00
|
|
|
Requires: python-Unidecode >= 1.1.1
|
2018-07-25 20:26:25 +00:00
|
|
|
Requires: python-cryptography >= 2.1.1
|
2018-08-01 13:38:11 +00:00
|
|
|
Requires: python-oauthlib >= 1.0.3
|
2019-04-02 10:10:22 +00:00
|
|
|
Requires: python-python-jose >= 3.0.0
|
2018-07-25 20:26:25 +00:00
|
|
|
Requires: python-requests >= 2.9.1
|
|
|
|
Requires: python-requests-oauthlib >= 0.6.1
|
|
|
|
Requires: python-six >= 1.10.0
|
2018-08-01 13:38:11 +00:00
|
|
|
BuildArch: noarch
|
|
|
|
%ifpython2
|
|
|
|
Requires: python2-python-openid >= 2.2.5
|
|
|
|
%endif
|
2018-07-25 20:26:25 +00:00
|
|
|
%ifpython3
|
|
|
|
Requires: python3-defusedxml >= 0.5.0
|
2018-08-01 13:38:11 +00:00
|
|
|
Requires: python3-python3-openid >= 3.0.10
|
2020-04-17 08:20:32 +00:00
|
|
|
Recommends: python-python3-saml
|
2018-07-25 20:26:25 +00:00
|
|
|
%endif
|
|
|
|
%python_subpackages
|
|
|
|
|
|
|
|
%description
|
2018-07-27 08:24:19 +00:00
|
|
|
Python Social Auth is a social authentication/registration
|
2018-07-25 20:26:25 +00:00
|
|
|
mechanism with support for several frameworks and auth providers.
|
|
|
|
|
2018-07-27 08:24:19 +00:00
|
|
|
This is the core component of the python-social-auth ecosystem. It
|
2018-07-25 20:26:25 +00:00
|
|
|
implements the common interface to define new authentication backends to
|
2018-07-27 08:24:19 +00:00
|
|
|
third party services, implement integrations with web frameworks and
|
2018-07-25 20:26:25 +00:00
|
|
|
storage solutions.
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q -n social-auth-core-%{version}
|
2019-04-11 08:18:53 +00:00
|
|
|
%patch0 -p1
|
|
|
|
cp %{SOURCE1} social_core/tests/backends/data/
|
2018-07-25 20:26:25 +00:00
|
|
|
|
|
|
|
%build
|
|
|
|
%python_build
|
|
|
|
|
|
|
|
%install
|
|
|
|
%python_install
|
|
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
|
|
|
|
|
|
|
%check
|
2020-03-27 15:13:42 +00:00
|
|
|
# python3 only: assertRaisesRegexp -> assertRaisesRegex
|
2020-04-17 08:20:32 +00:00
|
|
|
# skipped tests are online based
|
2020-03-27 15:13:42 +00:00
|
|
|
rm -r _build.python2
|
2020-04-17 08:20:32 +00:00
|
|
|
python3 -m pytest -v -k 'not (test_login or test_partial_pipeline)'
|
2018-07-25 20:26:25 +00:00
|
|
|
|
|
|
|
%files %{python_files}
|
2019-04-11 08:18:53 +00:00
|
|
|
%doc CHANGELOG.md README.md
|
2018-07-25 20:26:25 +00:00
|
|
|
%license LICENSE
|
|
|
|
%{python_sitelib}/*
|
|
|
|
|
|
|
|
%changelog
|