2020-03-25 12:00:22 +00:00
|
|
|
#
|
|
|
|
# spec file for package python-Flask-Security-Too
|
|
|
|
#
|
2023-01-06 03:54:53 +00:00
|
|
|
# Copyright (c) 2023 SUSE LLC
|
2020-03-25 12:00:22 +00:00
|
|
|
#
|
|
|
|
# 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.
|
|
|
|
|
2020-04-05 08:37:47 +00:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
|
|
|
#
|
2020-03-25 12:00:22 +00:00
|
|
|
|
|
|
|
|
|
|
|
Name: python-Flask-Security-Too
|
2023-03-03 06:22:07 +00:00
|
|
|
Version: 5.1.1
|
2020-03-25 12:00:22 +00:00
|
|
|
Release: 0
|
|
|
|
Summary: Security for Flask apps
|
2020-04-05 08:37:47 +00:00
|
|
|
License: MIT
|
2022-09-30 06:53:24 +00:00
|
|
|
URL: https://github.com/Flask-Middleware/flask-security
|
2020-03-25 12:00:22 +00:00
|
|
|
Source: https://files.pythonhosted.org/packages/source/F/Flask-Security-Too/Flask-Security-Too-%{version}.tar.gz
|
2020-04-05 08:37:47 +00:00
|
|
|
Patch0: no-mongodb.patch
|
2023-01-06 03:54:53 +00:00
|
|
|
# PATCH-FIX-OPENSUSE Use pyqrcodeng, we do not ship qrcode in OpenSUSE.
|
2022-02-28 06:21:54 +00:00
|
|
|
Patch1: use-pyqrcodeng.patch
|
2023-03-03 06:22:07 +00:00
|
|
|
BuildRequires: %{python_module Babel >= 2.10.0}
|
2022-03-06 07:24:48 +00:00
|
|
|
BuildRequires: %{python_module Flask >= 1.1.1}
|
2022-09-30 06:53:24 +00:00
|
|
|
BuildRequires: %{python_module Flask-Babel >= 2.0.0}
|
2020-04-05 08:37:47 +00:00
|
|
|
BuildRequires: %{python_module Flask-Login >= 0.4.1}
|
2022-09-30 06:53:24 +00:00
|
|
|
BuildRequires: %{python_module Flask-Mailman >= 0.3.0}
|
2020-04-05 08:37:47 +00:00
|
|
|
BuildRequires: %{python_module Flask-Principal >= 0.4.0}
|
2023-03-03 06:22:07 +00:00
|
|
|
BuildRequires: %{python_module Flask-SQLAlchemy >= 3.0.2}
|
2022-03-06 07:24:48 +00:00
|
|
|
BuildRequires: %{python_module Flask-WTF >= 0.14.3}
|
2020-04-05 08:37:47 +00:00
|
|
|
BuildRequires: %{python_module PyQRCode >= 1.2}
|
2023-03-03 06:22:07 +00:00
|
|
|
BuildRequires: %{python_module SQLAlchemy >= 1.4.35}
|
2022-04-16 23:06:35 +00:00
|
|
|
BuildRequires: %{python_module WTForms-lang}
|
|
|
|
BuildRequires: %{python_module WTForms}
|
2020-05-14 10:21:18 +00:00
|
|
|
BuildRequires: %{python_module Werkzeug >= 0.14.1}
|
2020-04-05 08:37:47 +00:00
|
|
|
BuildRequires: %{python_module argon2_cffi >= 19.1.0}
|
2023-03-03 06:22:07 +00:00
|
|
|
BuildRequires: %{python_module bcrypt >= 4.0.1}
|
|
|
|
BuildRequires: %{python_module bleach >= 5.0.0}
|
2022-02-28 06:21:54 +00:00
|
|
|
BuildRequires: %{python_module blinker >= 1.4}
|
2020-04-05 08:37:47 +00:00
|
|
|
BuildRequires: %{python_module cachetools >= 3.1.0}
|
2023-03-03 06:22:07 +00:00
|
|
|
BuildRequires: %{python_module cryptography >= 37.0.4}
|
2022-09-30 06:53:24 +00:00
|
|
|
BuildRequires: %{python_module dateutil}
|
2022-09-08 06:45:39 +00:00
|
|
|
BuildRequires: %{python_module email-validator >= 1.1.1}
|
2020-04-05 08:37:47 +00:00
|
|
|
BuildRequires: %{python_module itsdangerous >= 1.1.0}
|
2022-03-06 07:24:48 +00:00
|
|
|
BuildRequires: %{python_module passlib >= 1.7.2}
|
2020-05-14 10:21:18 +00:00
|
|
|
BuildRequires: %{python_module peewee >= 3.7.1}
|
2022-09-30 06:53:24 +00:00
|
|
|
BuildRequires: %{python_module phonenumbers >= 8.12.18}
|
2022-04-16 23:06:35 +00:00
|
|
|
BuildRequires: %{python_module pony}
|
2022-03-06 07:24:48 +00:00
|
|
|
BuildRequires: %{python_module pytest >= 6.2.5}
|
2020-04-05 08:37:47 +00:00
|
|
|
BuildRequires: %{python_module setuptools}
|
|
|
|
BuildRequires: %{python_module zxcvbn >= 4.4.28}
|
2020-03-25 12:00:22 +00:00
|
|
|
BuildRequires: fdupes
|
2020-04-05 08:37:47 +00:00
|
|
|
BuildRequires: python-rpm-macros
|
2022-03-06 07:24:48 +00:00
|
|
|
Requires: python-Flask >= 1.1.1
|
2022-09-30 06:53:24 +00:00
|
|
|
Requires: python-Flask-Babel >= 2.0.0
|
2020-03-25 12:00:22 +00:00
|
|
|
Requires: python-Flask-Login >= 0.4.1
|
|
|
|
Requires: python-Flask-Principal >= 0.4.0
|
2022-03-06 07:24:48 +00:00
|
|
|
Requires: python-Flask-WTF >= 0.14.3
|
2020-05-14 10:21:18 +00:00
|
|
|
Requires: python-Werkzeug >= 0.14.1
|
2023-03-03 06:22:07 +00:00
|
|
|
Requires: python-bcrypt >= 4.0.1
|
|
|
|
Requires: python-bleach >= 5.0.0
|
2022-02-28 06:21:54 +00:00
|
|
|
Requires: python-blinker >= 1.4
|
2023-03-03 06:22:07 +00:00
|
|
|
Requires: python-cryptography >= 37.0.4
|
2022-09-08 06:45:39 +00:00
|
|
|
Requires: python-email-validator >= 1.1.1
|
2020-03-25 12:00:22 +00:00
|
|
|
Requires: python-itsdangerous >= 1.1.0
|
2022-03-06 07:24:48 +00:00
|
|
|
Requires: python-passlib >= 1.7.2
|
2020-05-07 17:13:58 +00:00
|
|
|
Recommends: python-PyQRCode >= 1.2
|
2023-03-03 06:22:07 +00:00
|
|
|
Recommends: python-SQLAlchemy >= 1.4.35
|
2020-05-07 17:13:58 +00:00
|
|
|
Recommends: python-zxcvbn >= 4.4.28
|
|
|
|
Suggests: python-argon2_cffi >= 19.1.0
|
2022-09-30 06:53:24 +00:00
|
|
|
Suggests: python-phonenumbers >= 8.12.18
|
2020-03-25 12:00:22 +00:00
|
|
|
Conflicts: python-Flask-Security < 3.2.0
|
|
|
|
Obsoletes: python-Flask-Security < 3.2.0
|
|
|
|
Provides: python-Flask-Security = %{version}
|
|
|
|
BuildArch: noarch
|
|
|
|
%python_subpackages
|
|
|
|
|
|
|
|
%description
|
|
|
|
Flask-Security-Too is a Python module to add security features to a Flask
|
|
|
|
application. This is a independently maintained version of Flask-Security
|
|
|
|
based on the 3.0.0 version of the original.
|
|
|
|
|
|
|
|
%prep
|
2022-02-28 06:21:54 +00:00
|
|
|
%autosetup -p1 -n Flask-Security-Too-%{version}
|
2020-03-25 12:00:22 +00:00
|
|
|
|
2020-05-14 10:21:18 +00:00
|
|
|
%if 0%{?suse_version} <= 1500
|
|
|
|
# test_trackable.py needs werkzeug.middleware.proxy_fix which is only available
|
|
|
|
# in newer werkzeug versions
|
|
|
|
rm tests/test_trackable.py
|
|
|
|
%endif
|
|
|
|
|
2020-03-25 12:00:22 +00:00
|
|
|
%build
|
|
|
|
%python_build
|
|
|
|
|
|
|
|
%install
|
|
|
|
%python_install
|
|
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
|
|
|
|
|
|
|
%check
|
2022-04-16 23:06:35 +00:00
|
|
|
# gh#Flask-Middleware/flask-security#605 for test_two_factor_flag
|
|
|
|
%pytest -k 'not test_two_factor_flag'
|
2020-03-25 12:00:22 +00:00
|
|
|
|
|
|
|
%files %{python_files}
|
|
|
|
%doc AUTHORS CHANGES.rst README.rst
|
|
|
|
%license LICENSE
|
|
|
|
%{python_sitelib}/flask_security
|
|
|
|
%{python_sitelib}/Flask_Security_Too-%{version}-py%{python_version}.egg-info
|
|
|
|
|
|
|
|
%changelog
|