aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPo-Chuan Hsieh <sunpoet@FreeBSD.org>2024-03-09 13:44:21 +0000
committerPo-Chuan Hsieh <sunpoet@FreeBSD.org>2024-03-09 14:05:15 +0000
commit34c201e051eb56adc8267e481ab188cadfc155e5 (patch)
tree3b5b13a14559fd27a5aa5f01dfa1648c05e711b1
parentf3a060f8ab456cc1af9b8d712b813ab9273502a6 (diff)
downloadports-34c201e051eb56adc8267e481ab188cadfc155e5.tar.gz
ports-34c201e051eb56adc8267e481ab188cadfc155e5.zip
www/py-dj42-django-modelcluster: Add py-dj42-django-modelcluster 6.2.1 (copied from py-django-modelcluster)
django-modelcluster extends Django's foreign key relations to make this possible. It introduces a new type of relation, ParentalKey, where the related models are stored locally to the 'parent' model until the parent is explicitly saved. Up to that point, the related models can still be accessed through a subset of the QuerySet API.
-rw-r--r--www/Makefile1
-rw-r--r--www/py-dj42-django-modelcluster/Makefile27
-rw-r--r--www/py-dj42-django-modelcluster/distinfo3
-rw-r--r--www/py-dj42-django-modelcluster/pkg-descr5
4 files changed, 36 insertions, 0 deletions
diff --git a/www/Makefile b/www/Makefile
index a087e573b1fe..c21724837f7d 100644
--- a/www/Makefile
+++ b/www/Makefile
@@ -1507,6 +1507,7 @@
SUBDIR += py-dj42-django-graphiql-debug-toolbar
SUBDIR += py-dj42-django-guardian
SUBDIR += py-dj42-django-js-asset
+ SUBDIR += py-dj42-django-modelcluster
SUBDIR += py-dj42-django-mptt
SUBDIR += py-dj42-django-multiselectfield
SUBDIR += py-dj42-django-prometheus
diff --git a/www/py-dj42-django-modelcluster/Makefile b/www/py-dj42-django-modelcluster/Makefile
new file mode 100644
index 000000000000..5fc30b0a20b7
--- /dev/null
+++ b/www/py-dj42-django-modelcluster/Makefile
@@ -0,0 +1,27 @@
+PORTNAME= django-modelcluster
+PORTVERSION= 6.2.1
+CATEGORIES= www python
+MASTER_SITES= PYPI
+PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}dj42-
+
+MAINTAINER= sunpoet@FreeBSD.org
+COMMENT= Django extension for working with clusters of models as a single unit
+WWW= https://github.com/wagtail/django-modelcluster
+
+LICENSE= BSD3CLAUSE
+LICENSE_FILE= ${WRKSRC}/LICENSE
+
+RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}django42>=3.2:www/py-django42@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}pytz>=2022.4,1:devel/py-pytz@${PY_FLAVOR}
+
+USES= python
+USE_PYTHON= autoplist concurrent distutils
+
+NO_ARCH= yes
+
+OPTIONS_DEFINE= TAGGIT
+TAGGIT_DESC= Tagging support
+
+TAGGIT_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}dj42-django-taggit>=3.1:www/py-dj42-django-taggit@${PY_FLAVOR}
+
+.include <bsd.port.mk>
diff --git a/www/py-dj42-django-modelcluster/distinfo b/www/py-dj42-django-modelcluster/distinfo
new file mode 100644
index 000000000000..ccb0423d1f78
--- /dev/null
+++ b/www/py-dj42-django-modelcluster/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1708449512
+SHA256 (django-modelcluster-6.2.1.tar.gz) = 3f53d47e1af7aec5e238724be16bbebdac9c518e4788b31429e773dcd8e8ea49
+SIZE (django-modelcluster-6.2.1.tar.gz) = 27121
diff --git a/www/py-dj42-django-modelcluster/pkg-descr b/www/py-dj42-django-modelcluster/pkg-descr
new file mode 100644
index 000000000000..d4446457fed3
--- /dev/null
+++ b/www/py-dj42-django-modelcluster/pkg-descr
@@ -0,0 +1,5 @@
+django-modelcluster extends Django's foreign key relations to make this
+possible. It introduces a new type of relation, ParentalKey, where the related
+models are stored locally to the 'parent' model until the parent is explicitly
+saved. Up to that point, the related models can still be accessed through a
+subset of the QuerySet API.