From 02de34989560b40a963fa13dddfb4714470fec25 Mon Sep 17 00:00:00 2001 From: Daniel Crowe Date: Fri, 9 May 2025 10:45:29 +0930 Subject: [PATCH] package/python-flask-restx: new package Support REST APIs with Flask applications https://flask-restx.readthedocs.io/en/latest/ Signed-off-by: Daniel Crowe [Julien: reword commit title] Signed-off-by: Julien Olivain --- DEVELOPERS | 1 + package/Config.in | 1 + package/python-flask-restx/Config.in | 12 ++++++++++++ package/python-flask-restx/python-flask-restx.hash | 5 +++++ package/python-flask-restx/python-flask-restx.mk | 14 ++++++++++++++ 5 files changed, 33 insertions(+) create mode 100644 package/python-flask-restx/Config.in create mode 100644 package/python-flask-restx/python-flask-restx.hash create mode 100644 package/python-flask-restx/python-flask-restx.mk diff --git a/DEVELOPERS b/DEVELOPERS index d314be7946..36bf42da32 100644 --- a/DEVELOPERS +++ b/DEVELOPERS @@ -728,6 +728,7 @@ N: Daniel Crowe F: package/python-aniso8601/ F: package/python-cachelib/ F: package/python-flask-caching/ +F: package/python-flask-restx/ N: Daniel J. Leach F: package/dacapo/ diff --git a/package/Config.in b/package/Config.in index 59ac4ad070..9e4b0ea167 100644 --- a/package/Config.in +++ b/package/Config.in @@ -1128,6 +1128,7 @@ menu "External python modules" source "package/python-flask-expects-json/Config.in" source "package/python-flask-jsonrpc/Config.in" source "package/python-flask-login/Config.in" + source "package/python-flask-restx/Config.in" source "package/python-flask-smorest/Config.in" source "package/python-flask-sqlalchemy/Config.in" source "package/python-flask-wtf/Config.in" diff --git a/package/python-flask-restx/Config.in b/package/python-flask-restx/Config.in new file mode 100644 index 0000000000..4906869a38 --- /dev/null +++ b/package/python-flask-restx/Config.in @@ -0,0 +1,12 @@ +config BR2_PACKAGE_PYTHON_FLASK_RESTX + bool "python-flask-restx" + select BR2_PACKAGE_PYTHON_ANISO8601 # runtime + select BR2_PACKAGE_PYTHON_FLASK # runtime + select BR2_PACKAGE_PYTHON_JSONSCHEMA # runtime + select BR2_PACKAGE_PYTHON_PYTZ # runtime + select BR2_PACKAGE_PYTHON_WERKZEUG # runtime + help + Fully featured framework for fast, easy and documented API + development with Flask. + + https://github.com/python-restx/flask-restx diff --git a/package/python-flask-restx/python-flask-restx.hash b/package/python-flask-restx/python-flask-restx.hash new file mode 100644 index 0000000000..f90601cdc1 --- /dev/null +++ b/package/python-flask-restx/python-flask-restx.hash @@ -0,0 +1,5 @@ +# md5, sha256 from https://pypi.org/pypi/flask-restx/json +md5 262984a0c902db0b6f4afb86a69ea40e flask-restx-1.3.0.tar.gz +sha256 4f3d3fa7b6191fcc715b18c201a12cd875176f92ba4acc61626ccfd571ee1728 flask-restx-1.3.0.tar.gz +# Locally computed sha256 checksums +sha256 d736fc20d979831ab5c380973d01542de97857d975b60a4cf03efbd9e4e38997 LICENSE diff --git a/package/python-flask-restx/python-flask-restx.mk b/package/python-flask-restx/python-flask-restx.mk new file mode 100644 index 0000000000..23596f23d4 --- /dev/null +++ b/package/python-flask-restx/python-flask-restx.mk @@ -0,0 +1,14 @@ +################################################################################ +# +# python-flask-restx +# +################################################################################ + +PYTHON_FLASK_RESTX_VERSION = 1.3.0 +PYTHON_FLASK_RESTX_SOURCE = flask-restx-$(PYTHON_FLASK_RESTX_VERSION).tar.gz +PYTHON_FLASK_RESTX_SITE = https://files.pythonhosted.org/packages/45/4c/2e7d84e2b406b47cf3bf730f521efe474977b404ee170d8ea68dc37e6733 +PYTHON_FLASK_RESTX_SETUP_TYPE = setuptools +PYTHON_FLASK_RESTX_LICENSE = BSD-3-Clause +PYTHON_FLASK_RESTX_LICENSE_FILES = LICENSE + +$(eval $(python-package))