From 2142dfdbccd4f4cbe75abe850958ab420b666cb3 Mon Sep 17 00:00:00 2001 From: sthen Date: Tue, 22 Mar 2022 15:31:42 +0000 Subject: [PATCH] import ports/net/py-socketio, ok landry@ kmos@ Socket.IO is a transport protocol that enables real-time bidirectional event-based communication between clients (typically, though not always, web browsers) and a server. The official implementations of the client and server components are written in JavaScript. This package provides Python implementations of both, each with standard and asyncio variants. --- net/py-socketio/Makefile | 28 +++++++++++++++++++++ net/py-socketio/distinfo | 2 ++ net/py-socketio/pkg/DESCR | 5 ++++ net/py-socketio/pkg/PLIST | 53 +++++++++++++++++++++++++++++++++++++++ 4 files changed, 88 insertions(+) create mode 100644 net/py-socketio/Makefile create mode 100644 net/py-socketio/distinfo create mode 100644 net/py-socketio/pkg/DESCR create mode 100644 net/py-socketio/pkg/PLIST diff --git a/net/py-socketio/Makefile b/net/py-socketio/Makefile new file mode 100644 index 00000000000..fbf34d8023a --- /dev/null +++ b/net/py-socketio/Makefile @@ -0,0 +1,28 @@ +COMMENT= client/server implementation of Socket.IO + +# py-ripe.atlas.cousteau 1.5.0 needs <5.0 +MODPY_EGG_VERSION= 4.6.1 +DISTNAME= python-socketio-${MODPY_EGG_VERSION} +PKGNAME= ${DISTNAME:S/python-/py-/} + +CATEGORIES= net + +HOMEPAGE= https://python-socketio.readthedocs.io/en/latest/ + +# MIT +PERMIT_PACKAGE= Yes + +MODULES= lang/python +MODPY_SETUPTOOLS= Yes + +MODPY_PI= Yes +NO_TEST= Yes + +RUN_DEPENDS= devel/py-six${MODPY_FLAVOR} \ + net/py-engineio${MODPY_FLAVOR}<4 \ + sysutils/py-find${MODPY_FLAVOR} + +FLAVORS= python3 +FLAVOR= python3 + +.include diff --git a/net/py-socketio/distinfo b/net/py-socketio/distinfo new file mode 100644 index 00000000000..13bf97708c9 --- /dev/null +++ b/net/py-socketio/distinfo @@ -0,0 +1,2 @@ +SHA256 (python-socketio-4.6.1.tar.gz) = zR9apJLB6yvneDjoN6SV8Rfhf2hgKevAPWLAnjP0+hA= +SIZE (python-socketio-4.6.1.tar.gz) = 42374 diff --git a/net/py-socketio/pkg/DESCR b/net/py-socketio/pkg/DESCR new file mode 100644 index 00000000000..b38242048e6 --- /dev/null +++ b/net/py-socketio/pkg/DESCR @@ -0,0 +1,5 @@ +Socket.IO is a transport protocol that enables real-time bidirectional +event-based communication between clients (typically, though not always, +web browsers) and a server. The official implementations of the client +and server components are written in JavaScript. This package provides +Python implementations of both, each with standard and asyncio variants. diff --git a/net/py-socketio/pkg/PLIST b/net/py-socketio/pkg/PLIST new file mode 100644 index 00000000000..22c8a83c61d --- /dev/null +++ b/net/py-socketio/pkg/PLIST @@ -0,0 +1,53 @@ +lib/python${MODPY_VERSION}/site-packages/python_socketio-${MODPY_EGG_VERSION}-py${MODPY_VERSION}.egg-info/ +lib/python${MODPY_VERSION}/site-packages/python_socketio-${MODPY_EGG_VERSION}-py${MODPY_VERSION}.egg-info/PKG-INFO +lib/python${MODPY_VERSION}/site-packages/python_socketio-${MODPY_EGG_VERSION}-py${MODPY_VERSION}.egg-info/SOURCES.txt +lib/python${MODPY_VERSION}/site-packages/python_socketio-${MODPY_EGG_VERSION}-py${MODPY_VERSION}.egg-info/dependency_links.txt +lib/python${MODPY_VERSION}/site-packages/python_socketio-${MODPY_EGG_VERSION}-py${MODPY_VERSION}.egg-info/not-zip-safe +lib/python${MODPY_VERSION}/site-packages/python_socketio-${MODPY_EGG_VERSION}-py${MODPY_VERSION}.egg-info/requires.txt +lib/python${MODPY_VERSION}/site-packages/python_socketio-${MODPY_EGG_VERSION}-py${MODPY_VERSION}.egg-info/top_level.txt +lib/python${MODPY_VERSION}/site-packages/socketio/ +lib/python${MODPY_VERSION}/site-packages/socketio/__init__.py +${MODPY_COMMENT}lib/python${MODPY_VERSION}/site-packages/socketio/${MODPY_PYCACHE}/ +lib/python${MODPY_VERSION}/site-packages/socketio/${MODPY_PYCACHE}__init__.${MODPY_PYC_MAGIC_TAG}pyc +lib/python${MODPY_VERSION}/site-packages/socketio/${MODPY_PYCACHE}asgi.${MODPY_PYC_MAGIC_TAG}pyc +lib/python${MODPY_VERSION}/site-packages/socketio/${MODPY_PYCACHE}asyncio_aiopika_manager.${MODPY_PYC_MAGIC_TAG}pyc +lib/python${MODPY_VERSION}/site-packages/socketio/${MODPY_PYCACHE}asyncio_client.${MODPY_PYC_MAGIC_TAG}pyc +lib/python${MODPY_VERSION}/site-packages/socketio/${MODPY_PYCACHE}asyncio_manager.${MODPY_PYC_MAGIC_TAG}pyc +lib/python${MODPY_VERSION}/site-packages/socketio/${MODPY_PYCACHE}asyncio_namespace.${MODPY_PYC_MAGIC_TAG}pyc +lib/python${MODPY_VERSION}/site-packages/socketio/${MODPY_PYCACHE}asyncio_pubsub_manager.${MODPY_PYC_MAGIC_TAG}pyc +lib/python${MODPY_VERSION}/site-packages/socketio/${MODPY_PYCACHE}asyncio_redis_manager.${MODPY_PYC_MAGIC_TAG}pyc +lib/python${MODPY_VERSION}/site-packages/socketio/${MODPY_PYCACHE}asyncio_server.${MODPY_PYC_MAGIC_TAG}pyc +lib/python${MODPY_VERSION}/site-packages/socketio/${MODPY_PYCACHE}base_manager.${MODPY_PYC_MAGIC_TAG}pyc +lib/python${MODPY_VERSION}/site-packages/socketio/${MODPY_PYCACHE}client.${MODPY_PYC_MAGIC_TAG}pyc +lib/python${MODPY_VERSION}/site-packages/socketio/${MODPY_PYCACHE}exceptions.${MODPY_PYC_MAGIC_TAG}pyc +lib/python${MODPY_VERSION}/site-packages/socketio/${MODPY_PYCACHE}kafka_manager.${MODPY_PYC_MAGIC_TAG}pyc +lib/python${MODPY_VERSION}/site-packages/socketio/${MODPY_PYCACHE}kombu_manager.${MODPY_PYC_MAGIC_TAG}pyc +lib/python${MODPY_VERSION}/site-packages/socketio/${MODPY_PYCACHE}middleware.${MODPY_PYC_MAGIC_TAG}pyc +lib/python${MODPY_VERSION}/site-packages/socketio/${MODPY_PYCACHE}namespace.${MODPY_PYC_MAGIC_TAG}pyc +lib/python${MODPY_VERSION}/site-packages/socketio/${MODPY_PYCACHE}packet.${MODPY_PYC_MAGIC_TAG}pyc +lib/python${MODPY_VERSION}/site-packages/socketio/${MODPY_PYCACHE}pubsub_manager.${MODPY_PYC_MAGIC_TAG}pyc +lib/python${MODPY_VERSION}/site-packages/socketio/${MODPY_PYCACHE}redis_manager.${MODPY_PYC_MAGIC_TAG}pyc +lib/python${MODPY_VERSION}/site-packages/socketio/${MODPY_PYCACHE}server.${MODPY_PYC_MAGIC_TAG}pyc +lib/python${MODPY_VERSION}/site-packages/socketio/${MODPY_PYCACHE}tornado.${MODPY_PYC_MAGIC_TAG}pyc +lib/python${MODPY_VERSION}/site-packages/socketio/${MODPY_PYCACHE}zmq_manager.${MODPY_PYC_MAGIC_TAG}pyc +lib/python${MODPY_VERSION}/site-packages/socketio/asgi.py +lib/python${MODPY_VERSION}/site-packages/socketio/asyncio_aiopika_manager.py +lib/python${MODPY_VERSION}/site-packages/socketio/asyncio_client.py +lib/python${MODPY_VERSION}/site-packages/socketio/asyncio_manager.py +lib/python${MODPY_VERSION}/site-packages/socketio/asyncio_namespace.py +lib/python${MODPY_VERSION}/site-packages/socketio/asyncio_pubsub_manager.py +lib/python${MODPY_VERSION}/site-packages/socketio/asyncio_redis_manager.py +lib/python${MODPY_VERSION}/site-packages/socketio/asyncio_server.py +lib/python${MODPY_VERSION}/site-packages/socketio/base_manager.py +lib/python${MODPY_VERSION}/site-packages/socketio/client.py +lib/python${MODPY_VERSION}/site-packages/socketio/exceptions.py +lib/python${MODPY_VERSION}/site-packages/socketio/kafka_manager.py +lib/python${MODPY_VERSION}/site-packages/socketio/kombu_manager.py +lib/python${MODPY_VERSION}/site-packages/socketio/middleware.py +lib/python${MODPY_VERSION}/site-packages/socketio/namespace.py +lib/python${MODPY_VERSION}/site-packages/socketio/packet.py +lib/python${MODPY_VERSION}/site-packages/socketio/pubsub_manager.py +lib/python${MODPY_VERSION}/site-packages/socketio/redis_manager.py +lib/python${MODPY_VERSION}/site-packages/socketio/server.py +lib/python${MODPY_VERSION}/site-packages/socketio/tornado.py +lib/python${MODPY_VERSION}/site-packages/socketio/zmq_manager.py