aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Gmelin <grembo@FreeBSD.org>2024-02-12 18:09:24 +0000
committerMichael Gmelin <grembo@FreeBSD.org>2024-02-18 15:20:16 +0000
commit6b738c0de9858bcae0664e03c076a42895fd6dc3 (patch)
tree8d042d2be81f708bae52ee49f4f5c8ea3c981bfd
parenta9d834da3db90781a5d90eddad347d9f58178132 (diff)
downloadports-6b738c0de9858bcae0664e03c076a42895fd6dc3.tar.gz
ports-6b738c0de9858bcae0664e03c076a42895fd6dc3.zip
www/py-dj42-channels-redis: New port
Redis-backed asgi channel layer implementation
-rw-r--r--www/Makefile1
-rw-r--r--www/py-dj42-channels-redis/Makefile23
-rw-r--r--www/py-dj42-channels-redis/distinfo3
-rw-r--r--www/py-dj42-channels-redis/pkg-descr12
4 files changed, 39 insertions, 0 deletions
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.