aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Gmelin <grembo@FreeBSD.org>2024-02-12 17:47:42 +0000
committerMichael Gmelin <grembo@FreeBSD.org>2024-02-18 15:18:20 +0000
commita9d834da3db90781a5d90eddad347d9f58178132 (patch)
treea639fda07486b6c813e96251cb46d613f33ce554
parent839480a783cf3bfc4d2f442d4c7f315837f5641d (diff)
downloadports-a9d834da3db90781a5d90eddad347d9f58178132.tar.gz
ports-a9d834da3db90781a5d90eddad347d9f58178132.zip
www/py-dj42-channels: New port
Django 4.2 version of www/py-channels, happy to pass it to its maintainer or make it disappear, once 4.2 is the default django version.
-rw-r--r--www/Makefile1
-rw-r--r--www/py-dj42-channels/Makefile23
-rw-r--r--www/py-dj42-channels/distinfo3
-rw-r--r--www/py-dj42-channels/pkg-descr4
4 files changed, 31 insertions, 0 deletions
diff --git a/www/Makefile b/www/Makefile
index 755157508c8e..67a61868700e 100644
--- a/www/Makefile
+++ b/www/Makefile
@@ -1489,6 +1489,7 @@
SUBDIR += py-cssutils
SUBDIR += py-daphne
SUBDIR += py-dj-database-url
+ SUBDIR += py-dj42-channels
SUBDIR += py-dj42-django-allauth
SUBDIR += py-dj42-django-auditlog
SUBDIR += py-dj42-django-auth-ldap
diff --git a/www/py-dj42-channels/Makefile b/www/py-dj42-channels/Makefile
new file mode 100644
index 000000000000..6493a17b1fdc
--- /dev/null
+++ b/www/py-dj42-channels/Makefile
@@ -0,0 +1,23 @@
+PORTNAME= channels
+PORTVERSION= 4.0.0
+CATEGORIES= www python
+MASTER_SITES= PYPI
+PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}dj42-
+
+MAINTAINER= grembo@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}django42>=3.2:www/py-django42@${PY_FLAVOR}
+
+USES= python
+USE_PYTHON= autoplist concurrent distutils
+
+NO_ARCH= yes
+
+.include <bsd.port.mk>
diff --git a/www/py-dj42-channels/distinfo b/www/py-dj42-channels/distinfo
new file mode 100644
index 000000000000..5b1a85e8267d
--- /dev/null
+++ b/www/py-dj42-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-dj42-channels/pkg-descr b/www/py-dj42-channels/pkg-descr
new file mode 100644
index 000000000000..01296180bc27
--- /dev/null
+++ b/www/py-dj42-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.