git: 6b738c0de985 - main - www/py-dj42-channels-redis: New port

From: Michael Gmelin <grembo_at_FreeBSD.org>
Date: Sun, 18 Feb 2024 15:22:49 UTC
The branch main has been updated by grembo:

URL: https://cgit.FreeBSD.org/ports/commit/?id=6b738c0de9858bcae0664e03c076a42895fd6dc3

commit 6b738c0de9858bcae0664e03c076a42895fd6dc3
Author:     Michael Gmelin <grembo@FreeBSD.org>
AuthorDate: 2024-02-12 18:09:24 +0000
Commit:     Michael Gmelin <grembo@FreeBSD.org>
CommitDate: 2024-02-18 15:20:16 +0000

    www/py-dj42-channels-redis: New port
    
    Redis-backed asgi channel layer implementation
---
 www/Makefile                         |  1 +
 www/py-dj42-channels-redis/Makefile  | 23 +++++++++++++++++++++++
 www/py-dj42-channels-redis/distinfo  |  3 +++
 www/py-dj42-channels-redis/pkg-descr | 12 ++++++++++++
 4 files changed, 39 insertions(+)

diff --git a/www/Makefile b/www/Makefile
index 67a61868700e..68fbc8b03828 100644
--- a/www/Makefile
+++ b/www/Makefile
@@ -1490,6 +1490,7 @@
     SUBDIR += py-daphne
     SUBDIR += py-dj-database-url
     SUBDIR += py-dj42-channels
+    SUBDIR += py-dj42-channels-redis
     SUBDIR += py-dj42-django-allauth
     SUBDIR += py-dj42-django-auditlog
     SUBDIR += py-dj42-django-auth-ldap
diff --git a/www/py-dj42-channels-redis/Makefile b/www/py-dj42-channels-redis/Makefile
new file mode 100644
index 000000000000..b2b4acdae087
--- /dev/null
+++ b/www/py-dj42-channels-redis/Makefile
@@ -0,0 +1,23 @@
+PORTNAME=	channels-redis
+PORTVERSION=	4.2.0
+CATEGORIES=	www python
+MASTER_SITES=	PYPI
+PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}dj42-
+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}dj42-channels>=4:www/py-dj42-channels@${PY_FLAVOR}
+
+USES=		python
+USE_PYTHON=	autoplist distutils
+
+.include <bsd.port.mk>
diff --git a/www/py-dj42-channels-redis/distinfo b/www/py-dj42-channels-redis/distinfo
new file mode 100644
index 000000000000..1512fee23c7a
--- /dev/null
+++ b/www/py-dj42-channels-redis/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1707598760
+SHA256 (channels_redis-4.2.0.tar.gz) = 01c26c4d5d3a203f104bba9e5585c0305a70df390d21792386586068162027fd
+SIZE (channels_redis-4.2.0.tar.gz) = 20754
diff --git a/www/py-dj42-channels-redis/pkg-descr b/www/py-dj42-channels-redis/pkg-descr
new file mode 100644
index 000000000000..8cd2d32f3a39
--- /dev/null
+++ b/www/py-dj42-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.