aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPo-Chuan Hsieh <sunpoet@FreeBSD.org>2023-10-11 12:53:45 +0000
committerPo-Chuan Hsieh <sunpoet@FreeBSD.org>2023-10-11 12:53:45 +0000
commit84437b55bbafb20bc1916ac98b6594c18c668dba (patch)
tree37c2f5318122268a8ebc014625fdcfd73a91f232
parent277308333dafd29a2ea7cb6e5e5755492246f736 (diff)
www/py-channels: Add py-channels 4.0.0
Channels augments Django to bring WebSocket, long-poll HTTP, task offloading and other async support to your code, using familiar Django design patterns and a flexible underlying framework that lets you not only customize behaviours but also write support for your own protocols and needs.
-rw-r--r--www/Makefile1
-rw-r--r--www/py-channels/Makefile23
-rw-r--r--www/py-channels/distinfo3
-rw-r--r--www/py-channels/pkg-descr4
4 files changed, 31 insertions, 0 deletions
diff --git a/www/Makefile b/www/Makefile
index ca6941ef5577..9934a09cb41e 100644
--- a/www/Makefile
+++ b/www/Makefile
@@ -1477,6 +1477,7 @@
SUBDIR += py-cachecontrol
SUBDIR += py-cachelib
SUBDIR += py-caldav
+ SUBDIR += py-channels
SUBDIR += py-cheroot
SUBDIR += py-cherrypy
SUBDIR += py-cinemagoer
diff --git a/www/py-channels/Makefile b/www/py-channels/Makefile
new file mode 100644
index 000000000000..6b674b6e0989
--- /dev/null
+++ b/www/py-channels/Makefile
@@ -0,0 +1,23 @@
+PORTNAME= channels
+PORTVERSION= 4.0.0
+CATEGORIES= www python
+MASTER_SITES= PYPI
+PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
+
+MAINTAINER= sunpoet@FreeBSD.org
+COMMENT= Brings async, event-driven capabilities to Django
+WWW= https://channels.readthedocs.io/en/latest/ \
+ https://github.com/django/channels
+
+LICENSE= BSD3CLAUSE
+LICENSE_FILE= ${WRKSRC}/LICENSE
+
+RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}asgiref>=3.5.0<4:www/py-asgiref@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}django32>=3.2:www/py-django32@${PY_FLAVOR}
+
+USES= python
+USE_PYTHON= autoplist concurrent distutils
+
+NO_ARCH= yes
+
+.include <bsd.port.mk>
diff --git a/www/py-channels/distinfo b/www/py-channels/distinfo
new file mode 100644
index 000000000000..5b1a85e8267d
--- /dev/null
+++ b/www/py-channels/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1696904100
+SHA256 (channels-4.0.0.tar.gz) = 0ce53507a7da7b148eaa454526e0e05f7da5e5d1c23440e4886cf146981d8420
+SIZE (channels-4.0.0.tar.gz) = 24446
diff --git a/www/py-channels/pkg-descr b/www/py-channels/pkg-descr
new file mode 100644
index 000000000000..01296180bc27
--- /dev/null
+++ b/www/py-channels/pkg-descr
@@ -0,0 +1,4 @@
+Channels augments Django to bring WebSocket, long-poll HTTP, task offloading and
+other async support to your code, using familiar Django design patterns and a
+flexible underlying framework that lets you not only customize behaviours but
+also write support for your own protocols and needs.