All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Alexis Lothoré via buildroot" <buildroot@buildroot.org>
To: buildroot@buildroot.org
Cc: "James Hilliard" <james.hilliard1@gmail.com>,
	"Alexis Lothoré" <alexis.lothore@bootlin.com>,
	"Nicolas Carrier" <nicolas.carrier@nav-timing.safrangroup.com>,
	"Thomas Petazzoni" <thomas.petazzoni@bootlin.com>
Subject: [Buildroot] [PATCH 2/2] package/python-flask-socketio: new package
Date: Tue, 10 Feb 2026 22:01:56 +0100	[thread overview]
Message-ID: <20260210-python-packages-v1-2-6153f56421d4@bootlin.com> (raw)
In-Reply-To: <20260210-python-packages-v1-0-6153f56421d4@bootlin.com>

Signed-off-by: Alexis Lothoré <alexis.lothore@bootlin.com>
---
 DEVELOPERS                                                 |  1 +
 package/Config.in                                          |  1 +
 package/python-flask-socketio/Config.in                    | 14 ++++++++++++++
 package/python-flask-socketio/python-flask-socketio.hash   |  5 +++++
 package/python-flask-socketio/python-flask-socketio.mk     | 14 ++++++++++++++
 .../testing/tests/package/sample_python_flask_socketio.py  |  5 +++++
 .../testing/tests/package/test_python_flask_socketio.py    | 12 ++++++++++++
 7 files changed, 52 insertions(+)

diff --git a/DEVELOPERS b/DEVELOPERS
index cc7c38c31873..4ff9b3b593de 100644
--- a/DEVELOPERS
+++ b/DEVELOPERS
@@ -155,6 +155,7 @@ N:	Alexey Lukyanchuk <skif@skif-web.ru>
 F:	package/zabbix/
 
 N: 	Alexis Lothoré <alexis.lothore@bootlin.com>
+F: 	package/python-flask-socketio
 F: 	package/python-gevent
 F: 	package/python-scp
 
diff --git a/package/Config.in b/package/Config.in
index 76c2a4365513..bbb7297dd2aa 100644
--- a/package/Config.in
+++ b/package/Config.in
@@ -1120,6 +1120,7 @@ menu "External python modules"
 	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-socketio/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-socketio/Config.in b/package/python-flask-socketio/Config.in
new file mode 100644
index 000000000000..ec7f3833f8cb
--- /dev/null
+++ b/package/python-flask-socketio/Config.in
@@ -0,0 +1,14 @@
+config BR2_PACKAGE_PYTHON_FLASK_SOCKETIO
+	bool "python-flask-socketio"
+	depends on BR2_TOOLCHAIN_GCC_AT_LEAST_8 # C++20
+	select BR2_PACKAGE_PYTHON_FLASK # runtime
+	select BR2_PACKAGE_PYTHON_GEVENT # runtime
+	select BR2_PACKAGE_PYTHON_SOCKETIO # runtime
+	select BR2_PACKAGE_PYTHON3_SSL # runtime
+	help
+	  Socket.IO integration for Flask applications.
+
+	  https://github.com/miguelgrinberg/flask-socketio
+
+comment "python-flask-socketio needs a toolchain w/ C++, gcc >= 8"
+	depends on !BR2_TOOLCHAIN_GCC_AT_LEAST_8
diff --git a/package/python-flask-socketio/python-flask-socketio.hash b/package/python-flask-socketio/python-flask-socketio.hash
new file mode 100644
index 000000000000..0d517134e6c4
--- /dev/null
+++ b/package/python-flask-socketio/python-flask-socketio.hash
@@ -0,0 +1,5 @@
+# md5, sha256 from https://pypi.org/pypi/flask-socketio/json
+md5  50872c7e1d558fcbe60a942c5519703d  flask_socketio-5.6.0.tar.gz
+sha256  42a7bc552013633875ad320e39462323b4f7334594f1658d72b6ffed99940d4c  flask_socketio-5.6.0.tar.gz
+# Locally computed sha256 checksums
+sha256  68d0966e480a8d2fd3d5c26d002c996ef08cdfa2b15a77d0d0b593b9abee60a4  LICENSE
diff --git a/package/python-flask-socketio/python-flask-socketio.mk b/package/python-flask-socketio/python-flask-socketio.mk
new file mode 100644
index 000000000000..bdc60bdac24f
--- /dev/null
+++ b/package/python-flask-socketio/python-flask-socketio.mk
@@ -0,0 +1,14 @@
+################################################################################
+#
+# python-flask-socketio
+#
+################################################################################
+
+PYTHON_FLASK_SOCKETIO_VERSION = 5.6.0
+PYTHON_FLASK_SOCKETIO_SOURCE = flask_socketio-$(PYTHON_FLASK_SOCKETIO_VERSION).tar.gz
+PYTHON_FLASK_SOCKETIO_SITE = https://files.pythonhosted.org/packages/53/28/deac60f5c6faf9c3e0aed07aa3a92b0741c6709841aa3eba12417bbc8303
+PYTHON_FLASK_SOCKETIO_SETUP_TYPE = setuptools
+PYTHON_FLASK_SOCKETIO_LICENSE = MIT
+PYTHON_FLASK_SOCKETIO_LICENSE_FILES = LICENSE
+
+$(eval $(python-package))
diff --git a/support/testing/tests/package/sample_python_flask_socketio.py b/support/testing/tests/package/sample_python_flask_socketio.py
new file mode 100644
index 000000000000..11f8050c7085
--- /dev/null
+++ b/support/testing/tests/package/sample_python_flask_socketio.py
@@ -0,0 +1,5 @@
+from flask import Flask
+from flask_socketio import SocketIO
+
+app = Flask('test')
+socketio = SocketIO(app)
diff --git a/support/testing/tests/package/test_python_flask_socketio.py b/support/testing/tests/package/test_python_flask_socketio.py
new file mode 100644
index 000000000000..e977db0b441e
--- /dev/null
+++ b/support/testing/tests/package/test_python_flask_socketio.py
@@ -0,0 +1,12 @@
+from tests.package.test_python import TestPythonPackageBase
+
+
+class TestPythonFlaskSocketIO(TestPythonPackageBase):
+    __test__ = True
+    config = TestPythonPackageBase.config + \
+        """
+        BR2_PACKAGE_PYTHON3=y
+        BR2_PACKAGE_PYTHON_FLASK_SOCKETIO=y
+        """
+    sample_scripts = ["tests/package/sample_python_flask_socketio.py"]
+    timeout = 30

-- 
2.52.0

_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

      parent reply	other threads:[~2026-02-10 21:02 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-02-10 21:01 [Buildroot] [PATCH 0/2] package: add new python packages Alexis Lothoré via buildroot
2026-02-10 21:01 ` [Buildroot] [PATCH 1/2] package/python-gevent: new package Alexis Lothoré via buildroot
2026-02-10 21:01 ` Alexis Lothoré via buildroot [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20260210-python-packages-v1-2-6153f56421d4@bootlin.com \
    --to=buildroot@buildroot.org \
    --cc=alexis.lothore@bootlin.com \
    --cc=james.hilliard1@gmail.com \
    --cc=nicolas.carrier@nav-timing.safrangroup.com \
    --cc=thomas.petazzoni@bootlin.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.