python-flask-restx/python-flask-restx.spec
Steve Kowalik 8ce898f2ee - Update to 1.1.0:
* Update Swagger-UI to latest version to fix several security
    vulnerabiltiies.
  * Fix minor bug introduced in 1.0.5 that changed the behaviour of how
    flask-restx propagates exceptions. (#512)
  * Add support for Python 3.11 (requires update to invoke ^2.0.0)
  * Fix compatibility with upcoming release of Flask 2.3+. (#485)
  * Fix compatibility issue with werkzeug 2.1.0 (#423)
  * Drop support for python <3.7
- Drop patches merged_pr_463.patch, redirect.patch and werkzeug.patch.
- Add patch support-new-werkzeug.patch:
  * Support Werkzeug 2.35.
- Switch to pyproject macros.
- Stop using greedy globs in %files.
- Remove Python 2 leftovers.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:flask/python-flask-restx?expand=0&rev=19
2023-07-28 04:45:13 +00:00

84 lines
2.9 KiB
RPMSpec

#
# spec file for package python-flask-restx
#
# Copyright (c) 2023 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/
#
Name: python-flask-restx
Version: 1.1.0
Release: 0
Summary: Framework for fast, easy and documented API development with Flask
License: BSD-3-Clause
URL: https://github.com/python-restx/flask-restx
Source: https://github.com/python-restx/flask-restx/archive/%{version}.tar.gz
# PATCH-FIX-UPSTREAM gh#python-restx/flask-restx#552
Patch0: support-new-werkzeug.patch
BuildRequires: %{python_module Faker}
BuildRequires: %{python_module Flask}
BuildRequires: %{python_module Werkzeug}
BuildRequires: %{python_module aniso8601}
BuildRequires: %{python_module base >= 3.8}
BuildRequires: %{python_module blinker}
BuildRequires: %{python_module jsonschema}
BuildRequires: %{python_module jsonschema}
BuildRequires: %{python_module pip}
BuildRequires: %{python_module pytest-benchmark}
BuildRequires: %{python_module pytest-flask}
BuildRequires: %{python_module pytest-mock}
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module pytz}
BuildRequires: %{python_module q}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module tzlocal}
BuildRequires: %{python_module wheel}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires: python-Flask
Requires: python-Werkzeug
Requires: python-aniso8601
Requires: python-jsonschema
Requires: python-pytz
BuildArch: noarch
%python_subpackages
%description
Flask-RESTX is a community driven fork of Flask-RESTPlus. It is an extension for Flask
that adds support for quickly building REST APIs. It encourages best practices with
minimal setup. If you are familiar with Flask, Flask-RESTX should be easy to pick up.
It provides a coherent collection of decorators and tools to describe your API and expose
its documentation properly using Swagger.
%prep
%autosetup -p1 -n flask-restx-%{version}
%build
%pyproject_wheel
%install
%pyproject_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
# URLTest and EmailTest require network
%pytest -k 'not (URLTest or EmailTest)'
%files %{python_files}
%doc README.rst CONTRIBUTING.rst
%license LICENSE
%{python_sitelib}/flask_restx
%{python_sitelib}/flask_restx-%{version}.dist-info
%changelog