aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKai Knoblich <kai@FreeBSD.org>2024-01-23 07:05:52 +0000
committerKai Knoblich <kai@FreeBSD.org>2024-01-23 07:05:52 +0000
commit9843ba088d2ab774ede73b1ddcf369b2618d7be3 (patch)
treea366462519bdcff2d5f47ab3fcc82c755dde46aa
parent063670e70cde2aed867ef32f888c738ddb822393 (diff)
downloadports-9843ba088d2ab774ede73b1ddcf369b2618d7be3.tar.gz
ports-9843ba088d2ab774ede73b1ddcf369b2618d7be3.zip
www/py-django-htmx: New port
This package offers extensions for using Django with htmx, a library that allows one to access modern browser features directly from HTML, rather than using JavaScript (see https://htmx.org/).
-rw-r--r--www/Makefile1
-rw-r--r--www/py-django-htmx/Makefile24
-rw-r--r--www/py-django-htmx/distinfo3
-rw-r--r--www/py-django-htmx/pkg-descr3
4 files changed, 31 insertions, 0 deletions
diff --git a/www/Makefile b/www/Makefile
index d6b486d93f25..6bc7abff216f 100644
--- a/www/Makefile
+++ b/www/Makefile
@@ -1549,6 +1549,7 @@
SUBDIR += py-django-hierarkey
SUBDIR += py-django-hijack
SUBDIR += py-django-htmlmin
+ SUBDIR += py-django-htmx
SUBDIR += py-django-i18nfield
SUBDIR += py-django-jquery-js
SUBDIR += py-django-js-asset
diff --git a/www/py-django-htmx/Makefile b/www/py-django-htmx/Makefile
new file mode 100644
index 000000000000..b4e0298128e6
--- /dev/null
+++ b/www/py-django-htmx/Makefile
@@ -0,0 +1,24 @@
+PORTNAME= django-htmx
+DISTVERSION= 1.17.2
+CATEGORIES= www python
+MASTER_SITES= PYPI
+PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
+
+MAINTAINER= kai@FreeBSD.org
+COMMENT= Extensions for using Django with htmx
+WWW= https://github.com/adamchainz/django-htmx
+
+LICENSE= MIT
+LICENSE_FILE= ${WRKSRC}/LICENSE
+
+BUILD_DEPENDS= ${PY_SETUPTOOLS} \
+ ${PYTHON_PKGNAMEPREFIX}wheel>0:devel/py-wheel@${PY_FLAVOR}
+RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}django32>=3.2:www/py-django32@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}asgiref>=3.6:www/py-asgiref@${PY_FLAVOR}
+
+USES= python
+USE_PYTHON= autoplist pep517
+
+NO_ARCH= yes
+
+.include <bsd.port.mk>
diff --git a/www/py-django-htmx/distinfo b/www/py-django-htmx/distinfo
new file mode 100644
index 000000000000..37a8837357ff
--- /dev/null
+++ b/www/py-django-htmx/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1705945193
+SHA256 (django-htmx-1.17.2.tar.gz) = 4089f2ed38727e9846c2f4cd1daddf6b010c7be8d834cfbcffc8c5ecf445c04e
+SIZE (django-htmx-1.17.2.tar.gz) = 9728
diff --git a/www/py-django-htmx/pkg-descr b/www/py-django-htmx/pkg-descr
new file mode 100644
index 000000000000..9b84019de4a7
--- /dev/null
+++ b/www/py-django-htmx/pkg-descr
@@ -0,0 +1,3 @@
+This package offers extensions for using Django with htmx, a library that
+allows one to access modern browser features directly from HTML, rather than
+using JavaScript (see https://htmx.org/).