- Update to v3.20.0 (2019-07-17) + Initial release. OBS-URL: https://build.opensuse.org/request/show/717111 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:flask/python-flask-jwt-extended?expand=0&rev=1
77 lines
2.5 KiB
RPMSpec
77 lines
2.5 KiB
RPMSpec
#
|
|
# spec file for package python-flask-jwt-extended
|
|
#
|
|
# Copyright (c) 2019 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-flask-jwt-extended
|
|
Version: 3.20.0
|
|
Release: 0
|
|
Summary: An open source Flask extension that provides JWT support
|
|
License: MIT
|
|
Group: Development/Languages/Python
|
|
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 setuptools}
|
|
BuildRequires: fdupes
|
|
BuildRequires: python-rpm-macros
|
|
BuildRequires: %{python_module Flask}
|
|
BuildRequires: %{python_module python-dateutil}
|
|
BuildRequires: %{python_module Werkzeug >= 0.14}
|
|
BuildRequires: %{python_module PyJWT >= 1.6.4}
|
|
BuildRequires: %{python_module six}
|
|
BuildRequires: %{python_module pytest}
|
|
Requires: python-Flask
|
|
Requires: python-Werkzeug >= 0.14
|
|
Requires: python-PyJWT >= 1.6.4
|
|
Requires: python-six
|
|
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 helpful
|
|
(and 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
|
|
%python_build
|
|
|
|
%install
|
|
%python_install
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}/flask_jwt_extended
|
|
|
|
%check
|
|
%pytest
|
|
|
|
%files %{python_files}
|
|
%license LICENSE
|
|
%doc README.md
|
|
%{python_sitelib}/*
|
|
|
|
%changelog
|
|
|