summaryrefslogtreecommitdiff
path: root/www/py-dj52-django-htmx
diff options
context:
space:
mode:
Diffstat (limited to 'www/py-dj52-django-htmx')
-rw-r--r--www/py-dj52-django-htmx/Makefile27
-rw-r--r--www/py-dj52-django-htmx/distinfo3
-rw-r--r--www/py-dj52-django-htmx/files/patch-pyproject.toml24
-rw-r--r--www/py-dj52-django-htmx/pkg-descr3
4 files changed, 57 insertions, 0 deletions
diff --git a/www/py-dj52-django-htmx/Makefile b/www/py-dj52-django-htmx/Makefile
new file mode 100644
index 000000000000..6d16fe807308
--- /dev/null
+++ b/www/py-dj52-django-htmx/Makefile
@@ -0,0 +1,27 @@
+PORTNAME= django-htmx
+DISTVERSION= 1.23.2
+CATEGORIES= www python
+MASTER_SITES= PYPI
+PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}dj52-
+DISTNAME= django_htmx-${DISTVERSION}
+
+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}django52>=4.2:www/py-django52@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}asgiref>=3.6:www/py-asgiref@${PY_FLAVOR}
+
+USES= python:3.10+
+USE_PYTHON= autoplist pep517
+
+CONFLICTS_INSTALL= ${PYTHON_PKGNAMEPREFIX}*${PORTNAME}
+
+NO_ARCH= yes
+
+.include <bsd.port.mk>
diff --git a/www/py-dj52-django-htmx/distinfo b/www/py-dj52-django-htmx/distinfo
new file mode 100644
index 000000000000..a7bbc8609725
--- /dev/null
+++ b/www/py-dj52-django-htmx/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1751179083
+SHA256 (django_htmx-1.23.2.tar.gz) = 65a8c8825fcae983b94aedce26af96a70717ab185d55cdb8a7a4bb68863ab079
+SIZE (django_htmx-1.23.2.tar.gz) = 64415
diff --git a/www/py-dj52-django-htmx/files/patch-pyproject.toml b/www/py-dj52-django-htmx/files/patch-pyproject.toml
new file mode 100644
index 000000000000..aa80972d35fd
--- /dev/null
+++ b/www/py-dj52-django-htmx/files/patch-pyproject.toml
@@ -0,0 +1,24 @@
+* Relax version requirements for py-setuptools and enable build for
+ older versions of it
+
+--- pyproject.toml.orig 2025-06-22 10:34:17 UTC
++++ pyproject.toml
+@@ -1,7 +1,7 @@ requires = [
+ [build-system]
+ build-backend = "setuptools.build_meta"
+ requires = [
+- "setuptools>=77",
++ "setuptools",
+ ]
+
+ [project]
+@@ -12,8 +12,7 @@ keywords = [
+ keywords = [
+ "Django",
+ ]
+-license = "MIT"
+-license-files = [ "LICENSE" ]
++license = { text="MIT" }
+ authors = [
+ { name = "Adam Johnson", email = "me@adamj.eu" },
+ ]
diff --git a/www/py-dj52-django-htmx/pkg-descr b/www/py-dj52-django-htmx/pkg-descr
new file mode 100644
index 000000000000..9b84019de4a7
--- /dev/null
+++ b/www/py-dj52-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/).