git: 2dbbaacbadf7 - main - www/py-dj51-channels-redis: New port
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 05 May 2025 18:00:36 UTC
The branch main has been updated by grembo:
URL: https://cgit.FreeBSD.org/ports/commit/?id=2dbbaacbadf7c775e331659abde0da139b4dcc99
commit 2dbbaacbadf7c775e331659abde0da139b4dcc99
Author: Sebastian <sko@rostwald.de>
AuthorDate: 2025-05-05 15:14:37 +0000
Commit: Michael Gmelin <grembo@FreeBSD.org>
CommitDate: 2025-05-05 17:59:48 +0000
www/py-dj51-channels-redis: New port
Clone of existing port for Django 5.1.
PR: 286533
---
www/Makefile | 1 +
www/py-dj51-channels-redis/Makefile | 24 ++++++++++++++++++++++++
www/py-dj51-channels-redis/distinfo | 3 +++
www/py-dj51-channels-redis/pkg-descr | 12 ++++++++++++
4 files changed, 40 insertions(+)
diff --git a/www/Makefile b/www/Makefile
index 2bc79b4a283f..2736218b61a2 100644
--- a/www/Makefile
+++ b/www/Makefile
@@ -1536,6 +1536,7 @@
SUBDIR += py-dj50-drf-spectacular-sidecar
SUBDIR += py-dj50-strawberry-graphql-django
SUBDIR += py-dj51-channels
+ SUBDIR += py-dj51-channels-redis
SUBDIR += py-dj51-django-auth-ldap
SUBDIR += py-dj51-django-choices-field
SUBDIR += py-dj51-django-cors-headers
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.