* Bump cryptography from 41.0.4 to 41.0.6 * Do not check JWT_TOKEN_LOCATION when testing if cookie_csrf_protect is enabled - update to 4.5.3: * Replace "defining" with "define" * Fix documentation syntax error * remove duplicate comments * Support python 3.12 and add support for flask 3.0 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:flask/python-flask-jwt-extended?expand=0&rev=23
79 lines
2.6 KiB
RPMSpec
79 lines
2.6 KiB
RPMSpec
#
|
|
# spec file for package python-flask-jwt-extended
|
|
#
|
|
# Copyright (c) 2024 SUSE LLC
|
|
#
|
|
# 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 https://bugs.opensuse.org/
|
|
#
|
|
|
|
|
|
%{?sle15_python_module_pythons}
|
|
Name: python-flask-jwt-extended
|
|
Version: 4.6.0
|
|
Release: 0
|
|
Summary: A Flask extension that provides JWT support
|
|
License: MIT
|
|
URL: https://github.com/vimalloc/flask-jwt-extended
|
|
Source: https://files.pythonhosted.org/packages/source/F/Flask-JWT-Extended/Flask-JWT-Extended-%{version}.tar.gz
|
|
BuildRequires: %{python_module Flask >= 1.0}
|
|
BuildRequires: %{python_module PyJWT >= 2.0}
|
|
BuildRequires: %{python_module Werkzeug >= 0.14}
|
|
BuildRequires: %{python_module cryptography >= 41.0.6}
|
|
BuildRequires: %{python_module pip}
|
|
BuildRequires: %{python_module pytest}
|
|
BuildRequires: %{python_module python-dateutil}
|
|
BuildRequires: %{python_module setuptools}
|
|
BuildRequires: %{python_module wheel}
|
|
BuildRequires: fdupes
|
|
BuildRequires: python-rpm-macros
|
|
Requires: python-Flask >= 1.0
|
|
Requires: python-PyJWT >= 2.0
|
|
Requires: python-Werkzeug >= 0.14
|
|
Suggests: python-cryptography >= 41.0.6
|
|
BuildArch: noarch
|
|
%python_subpackages
|
|
|
|
%description
|
|
Flask-JWT-Extended not only adds support for using JSON Web Tokens
|
|
(JWT) to Flask for protecting views, but also many
|
|
(optional) features built in to make working with JSON
|
|
Web Tokens easier. These include:
|
|
|
|
- Support for adding custom claims to JSON Web Tokens
|
|
- Custom claims validation on received tokens
|
|
- Creating tokens from complex objects or complex object from received tokens
|
|
- Refresh tokens
|
|
- Token freshness and separate view decorators to only allow fresh tokens
|
|
- Token revoking/blacklisting
|
|
- Storing tokens in cookies and CSRF protection
|
|
|
|
%prep
|
|
%setup -q -n Flask-JWT-Extended-%{version}
|
|
|
|
%build
|
|
%pyproject_wheel
|
|
|
|
%install
|
|
%pyproject_install
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}/flask_jwt_extended
|
|
|
|
%check
|
|
%pytest
|
|
|
|
%files %{python_files}
|
|
%license LICENSE
|
|
%doc README.md
|
|
%{python_sitelib}/flask_jwt_extended
|
|
%{python_sitelib}/Flask_JWT_Extended-%{version}.dist-info
|
|
|
|
%changelog
|