[Buildroot] [PATCH 5/5] package/python-flask-smorest: new package

Martin Hundebøll martin at geanix.com
Thu Jan 5 13:00:00 UTC 2023


Signed-off-by: Martin Hundebøll <martin at geanix.com>
---
 package/Config.in                                  |  1 +
 package/python-flask-smorest/Config.in             | 11 +++++++++++
 .../python-flask-smorest/python-flask-smorest.hash |  5 +++++
 .../python-flask-smorest/python-flask-smorest.mk   | 14 ++++++++++++++
 4 files changed, 31 insertions(+)
 create mode 100644 package/python-flask-smorest/Config.in
 create mode 100644 package/python-flask-smorest/python-flask-smorest.hash
 create mode 100644 package/python-flask-smorest/python-flask-smorest.mk

diff --git a/package/Config.in b/package/Config.in
index e3a0900866..0564d86885 100644
--- a/package/Config.in
+++ b/package/Config.in
@@ -1055,6 +1055,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-smorest/Config.in"
 	source "package/python-flask-sqlalchemy/Config.in"
 	source "package/python-flask-wtf/Config.in"
 	source "package/python-flatbuffers/Config.in"
diff --git a/package/python-flask-smorest/Config.in b/package/python-flask-smorest/Config.in
new file mode 100644
index 0000000000..a8ccfbd9f7
--- /dev/null
+++ b/package/python-flask-smorest/Config.in
@@ -0,0 +1,11 @@
+config BR2_PACKAGE_PYTHON_FLASK_SMOREST
+	bool "python-flask-smorest"
+	select BR2_PACKAGE_PYTHON_APISPEC # runtime
+	select BR2_PACKAGE_PYTHON_FLASK # runtime
+	select BR2_PACKAGE_PYTHON_MARSHMALLOW # runtime
+	select BR2_PACKAGE_PYTHON_WEBARGS # runtime
+	select BR2_PACKAGE_PYTHON_WERKZEUG # runtime
+	help
+	  Flask/Marshmallow-based REST API framework.
+
+	  https://github.com/marshmallow-code/flask-smorest
diff --git a/package/python-flask-smorest/python-flask-smorest.hash b/package/python-flask-smorest/python-flask-smorest.hash
new file mode 100644
index 0000000000..5abe0c5033
--- /dev/null
+++ b/package/python-flask-smorest/python-flask-smorest.hash
@@ -0,0 +1,5 @@
+# md5, sha256 from https://pypi.org/pypi/flask-smorest/json
+md5  1dad52f26c59ca2dcaf0c5d109879605  flask-smorest-0.40.0.tar.gz
+sha256  9b46b4937ccf78702d99fed8cfd1cd5c37608ddefd65ff16a86d1ad5c7f7d8c0  flask-smorest-0.40.0.tar.gz
+# Locally computed sha256 checksums
+sha256	40999ea1d9c1b8202fa44f8e6849a557e22df892481e067abf999879064b9521  LICENSE
diff --git a/package/python-flask-smorest/python-flask-smorest.mk b/package/python-flask-smorest/python-flask-smorest.mk
new file mode 100644
index 0000000000..069d9244dd
--- /dev/null
+++ b/package/python-flask-smorest/python-flask-smorest.mk
@@ -0,0 +1,14 @@
+################################################################################
+#
+# python-flask-smorest
+#
+################################################################################
+
+PYTHON_FLASK_SMOREST_VERSION = 0.40.0
+PYTHON_FLASK_SMOREST_SOURCE = flask-smorest-$(PYTHON_FLASK_SMOREST_VERSION).tar.gz
+PYTHON_FLASK_SMOREST_SITE = https://files.pythonhosted.org/packages/e6/b5/1b81ea4f7e377cf8a653aa10c249656a1c73de7a3695b2544d7a713ea3c2
+PYTHON_FLASK_SMOREST_SETUP_TYPE = setuptools
+PYTHON_FLASK_SMOREST_LICENSE = MIT
+PYTHON_FLASK_SMOREST_LICENSE_FILES = LICENSE
+
+$(eval $(python-package))
-- 
2.39.0




More information about the buildroot mailing list