summaryrefslogtreecommitdiff
path: root/www/py-dj52-django-tables2
diff options
context:
space:
mode:
Diffstat (limited to 'www/py-dj52-django-tables2')
-rw-r--r--www/py-dj52-django-tables2/Makefile30
-rw-r--r--www/py-dj52-django-tables2/distinfo3
-rw-r--r--www/py-dj52-django-tables2/pkg-descr3
3 files changed, 36 insertions, 0 deletions
diff --git a/www/py-dj52-django-tables2/Makefile b/www/py-dj52-django-tables2/Makefile
new file mode 100644
index 000000000000..e5826b984125
--- /dev/null
+++ b/www/py-dj52-django-tables2/Makefile
@@ -0,0 +1,30 @@
+PORTNAME= django-tables2
+DISTVERSION= 2.7.5
+CATEGORIES= www python
+MASTER_SITES= PYPI
+PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}dj52-
+DISTNAME= django_tables2-${DISTVERSION}
+
+MAINTAINER= kai@FreeBSD.org
+COMMENT= Table/data-grid framework for Django
+WWW= https://github.com/jieter/django-tables2
+
+LICENSE= BSD2CLAUSE
+LICENSE_FILE= ${WRKSRC}/LICENSE
+
+BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}hatchling>0:devel/py-hatchling@${PY_FLAVOR}
+RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}django52>=4.2:www/py-django52@${PY_FLAVOR}
+
+USES= python:3.10+
+USE_PYTHON= autoplist pep517
+
+CONFLICTS_INSTALL= ${PYTHON_PKGNAMEPREFIX}*${PORTNAME}
+
+NO_ARCH= yes
+
+OPTIONS_DEFINE= TABLIB
+
+TABLIB_DESC= Enable support for exporting table datasets
+TABLIB_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}tablib>=0:textproc/py-tablib@${PY_FLAVOR}
+
+.include <bsd.port.mk>
diff --git a/www/py-dj52-django-tables2/distinfo b/www/py-dj52-django-tables2/distinfo
new file mode 100644
index 000000000000..f7f2d9990542
--- /dev/null
+++ b/www/py-dj52-django-tables2/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1736247931
+SHA256 (django_tables2-2.7.5.tar.gz) = fb5dcaa09379cf3947598ec7e1bd5f26ed63aafdee3b23963446763bbeac37bf
+SIZE (django_tables2-2.7.5.tar.gz) = 128618
diff --git a/www/py-dj52-django-tables2/pkg-descr b/www/py-dj52-django-tables2/pkg-descr
new file mode 100644
index 000000000000..5b09aff2a2f2
--- /dev/null
+++ b/www/py-dj52-django-tables2/pkg-descr
@@ -0,0 +1,3 @@
+django-tables2 simplifies the task of turning sets of data into HTML tables.
+It has native support for pagination and sorting, does for HTML tables what
+django.forms does for HTML forms.