* from: https://github.com/python-restx/flask-restx/pull/622 * Fixes testfailure OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:flask/python-flask-restx?expand=0&rev=24
83 lines
2.9 KiB
RPMSpec
83 lines
2.9 KiB
RPMSpec
#
|
|
# spec file for package python-flask-restx
|
|
#
|
|
# 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/
|
|
#
|
|
|
|
|
|
Name: python-flask-restx
|
|
Version: 1.3.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 https://github.com/python-restx/flask-restx/pull/622
|
|
Patch0: Replace-pytz-with-zoneinfo-datetime-timezone.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 importlib_resources}
|
|
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 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-importlib_resources
|
|
Requires: python-jsonschema
|
|
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
|