%global pkg_name flask-security-too Name: python-%{pkg_name} Version: 5.1.2 Release: 2%{?dist} Summary: Simple security for Flask apps License: MIT BuildArch: noarch URL: https://github.com/Flask-Middleware/flask-security Source0: %{pypi_source Flask-Security-Too} # Drop missing test deps Patch0: python-flask-security-too_testdeps.patch # Remove dependence on pkg_resources Patch1: https://github.com/Flask-Middleware/flask-security/commit/4f5eefdcc583176dd1c8e98636f047062ba7ac08.patch # Use phonenumbers instead of phonenumberslite Patch2: python-flask-security-too_phonenumbers.patch # Don't fail on warnings in tests Patch3: python-flask-security-too_ignorewarnings.patch BuildRequires: python3-devel %description Flask-Security quickly adds security features to your Flask application. %package -n python3-%{pkg_name} Summary: Simple security for Flask apps %description -n python3-%{pkg_name} Flask-Security quickly adds security features to your Flask application. # Skip mfa extra, webauthn is not packaged %pyproject_extras_subpkg -n python3-%{pkg_name} babel fsqla common %prep %autosetup -p1 -n Flask-Security-Too-%{version} # Remove bundled egg-info rm -rf Flask_Security_Too.egg-info %generate_buildrequires # Skip mfa extra, webauthn is not packaged %pyproject_buildrequires -x babel,fsqla,common -r requirements/tests.txt %build %pyproject_wheel %install %pyproject_install %pyproject_save_files flask_security %check %pytest %files -n python3-%{pkg_name} -f %{pyproject_files} %license LICENSE %doc README.rst AUTHORS %changelog * Fri Jul 21 2023 Fedora Release Engineering - 5.1.2-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild * Mon May 01 2023 Sandro Mani - 5.1.2-1 - Update to 5.1.2 * Sat Mar 04 2023 Sandro Mani - 5.1.1-1 - Update to 5.1.1 * Wed Mar 01 2023 Miro HronĨok - 4.1.5-3 - Declare a runtime dependency on setuptools (for pkg_resources) * Fri Jan 20 2023 Fedora Release Engineering - 4.1.5-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild * Fri Jul 29 2022 Sandro Mani - 4.1.5-1 - Update to 4.1.5 * Thu Jul 28 2022 Frantisek Zatloukal - 4.1.4-4 - Backport fix for werkzeug >= 2.2 * Fri Jul 22 2022 Fedora Release Engineering - 4.1.4-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Fri Jun 24 2022 Python Maint - 4.1.4-2 - Rebuilt for Python 3.11 * Wed Apr 20 2022 Sandro Mani - 4.1.4-1 - Update to 4.1.4 * Thu Mar 03 2022 Sandro Mani - 4.1.3-1 - Update to 4.1.3 * Fri Jan 21 2022 Fedora Release Engineering - 4.1.2-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Tue Jan 04 2022 Sandro Mani - 4.1.2-3 - Also include language files * Mon Dec 27 2021 Sandro Mani - 4.1.2-2 - Run pytest - Don't build docs - Workaround to properly mark lang files - Add extra metapackages * Thu Dec 09 2021 Sandro Mani - 4.1.2-1 - Initial package