Browse Source

package/python-flask-restx: new package

Support REST APIs with Flask applications
https://flask-restx.readthedocs.io/en/latest/

Signed-off-by: Daniel Crowe <daniel.crowe@maxmine.com.au>
[Julien: reword commit title]
Signed-off-by: Julien Olivain <ju.o@free.fr>
Daniel Crowe 2 months ago
parent
commit
02de349895

+ 1 - 0
DEVELOPERS

@@ -728,6 +728,7 @@ N:	Daniel Crowe <daniel.crowe@maxmine.com.au>
 F:	package/python-aniso8601/
 F:	package/python-cachelib/
 F:	package/python-flask-caching/
+F:	package/python-flask-restx/
 
 N:	Daniel J. Leach <dleach@belcan.com>
 F:	package/dacapo/

+ 1 - 0
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"

+ 12 - 0
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

+ 5 - 0
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

+ 14 - 0
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))