summaryrefslogtreecommitdiff
path: root/www/py-dj51-channels-redis
diff options
context:
space:
mode:
Diffstat (limited to 'www/py-dj51-channels-redis')
-rw-r--r--www/py-dj51-channels-redis/Makefile24
-rw-r--r--www/py-dj51-channels-redis/distinfo3
-rw-r--r--www/py-dj51-channels-redis/pkg-descr12
3 files changed, 39 insertions, 0 deletions
diff --git a/www/py-dj51-channels-redis/Makefile b/www/py-dj51-channels-redis/Makefile
new file mode 100644
index 000000000000..6dfb16384889
--- /dev/null
+++ b/www/py-dj51-channels-redis/Makefile
@@ -0,0 +1,24 @@
+PORTNAME= channels-redis
+PORTVERSION= 4.2.1
+PORTREVISION= 1
+CATEGORIES= www python
+MASTER_SITES= PYPI
+PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}dj51-
+DISTNAME= ${PORTNAME:S/-/_/}-${PORTVERSION}
+
+MAINTAINER= grembo@FreeBSD.org
+COMMENT= Redis-backed asgi channel layer implementation
+WWW= http://github.com/django/channels_redis/
+
+LICENSE= BSD3CLAUSE
+LICENSE_FILE= ${WRKSRC}/LICENSE
+
+RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}redis>=5.0.1:databases/py-redis@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}msgpack>=1:devel/py-msgpack@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}asgiref>=3.7.2:www/py-asgiref@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}dj51-channels>=4:www/py-dj51-channels@${PY_FLAVOR}
+
+USES= python
+USE_PYTHON= autoplist distutils
+
+.include <bsd.port.mk>
diff --git a/www/py-dj51-channels-redis/distinfo b/www/py-dj51-channels-redis/distinfo
new file mode 100644
index 000000000000..24f9de6f6968
--- /dev/null
+++ b/www/py-dj51-channels-redis/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1738052794
+SHA256 (channels_redis-4.2.1.tar.gz) = 8375e81493e684792efe6e6eca60ef3d7782ef76c6664057d2e5c31e80d636dd
+SIZE (channels_redis-4.2.1.tar.gz) = 31152
diff --git a/www/py-dj51-channels-redis/pkg-descr b/www/py-dj51-channels-redis/pkg-descr
new file mode 100644
index 000000000000..8cd2d32f3a39
--- /dev/null
+++ b/www/py-dj51-channels-redis/pkg-descr
@@ -0,0 +1,12 @@
+Provides Django Channels channel layers that use Redis as a backing store.
+
+There are two available implementations:
+
+RedisChannelLayer is the original layer, and implements channel and group
+handling itself.
+
+RedisPubSubChannelLayer is newer and leverages Redis Pub/Sub for message
+dispatch. This layer is currently at Beta status, meaning it may be subject
+to breaking changes whilst it matures.
+
+Both layers support a single-server and sharded configurations.