aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Gmelin <grembo@FreeBSD.org>2024-02-12 16:47:39 +0000
committerMichael Gmelin <grembo@FreeBSD.org>2024-02-18 14:52:55 +0000
commit6533234e4fa93581e550815869e6af8db44349aa (patch)
treea58b053e2dc0b2d11136f33f4da6b14f4006ffe8
parent0f936531a1e45c8b66892a1a7793ac84e32c90fe (diff)
downloadports-6533234e4fa93581e550815869e6af8db44349aa.tar.gz
ports-6533234e4fa93581e550815869e6af8db44349aa.zip
www/py-dj42-drf-writable-nested: New port
Writable nested model serializer for Django REST framework
-rw-r--r--www/Makefile1
-rw-r--r--www/py-dj42-drf-writable-nested/Makefile23
-rw-r--r--www/py-dj42-drf-writable-nested/distinfo3
-rw-r--r--www/py-dj42-drf-writable-nested/pkg-descr9
4 files changed, 36 insertions, 0 deletions
diff --git a/www/Makefile b/www/Makefile
index 76a588dc3f9f..9906bd7b34e2 100644
--- a/www/Makefile
+++ b/www/Makefile
@@ -1509,6 +1509,7 @@
SUBDIR += py-dj42-djangorestframework
SUBDIR += py-dj42-drf-spectacular
SUBDIR += py-dj42-drf-spectacular-sidecar
+ SUBDIR += py-dj42-drf-writable-nested
SUBDIR += py-django-admin-rangefilter
SUBDIR += py-django-advanced-filters
SUBDIR += py-django-allauth
diff --git a/www/py-dj42-drf-writable-nested/Makefile b/www/py-dj42-drf-writable-nested/Makefile
new file mode 100644
index 000000000000..0c57cfbeb42f
--- /dev/null
+++ b/www/py-dj42-drf-writable-nested/Makefile
@@ -0,0 +1,23 @@
+PORTNAME= drf-writable-nested
+PORTVERSION= 0.7.0
+DISTVERSIONPREFIX= v
+CATEGORIES= www python
+PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}dj42-
+
+MAINTAINER= grembo@FreeBSD.org
+COMMENT= Writable nested model serializer for Django REST framework
+WWW= https://github.com/beda-software/drf-writable-nested
+
+LICENSE= BSD2CLAUSE
+
+RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}django42>=2.2:www/py-django42@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}dj42-djangorestframework>0:www/py-dj42-djangorestframework@${PY_FLAVOR}
+
+USES= python
+USE_GITHUB= yes
+GH_ACCOUNT= beda-software
+USE_PYTHON= autoplist distutils
+
+CONFLICTS_INSTALL= ${PYTHON_PKGNAMEPREFIX}*${PORTNAME}
+
+.include <bsd.port.mk>
diff --git a/www/py-dj42-drf-writable-nested/distinfo b/www/py-dj42-drf-writable-nested/distinfo
new file mode 100644
index 000000000000..a7fdff392381
--- /dev/null
+++ b/www/py-dj42-drf-writable-nested/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1707576902
+SHA256 (beda-software-drf-writable-nested-v0.7.0_GH0.tar.gz) = 3a3f3985c97ee9288e691a290fc991a5811af5e03511660f084065e06c7de0fe
+SIZE (beda-software-drf-writable-nested-v0.7.0_GH0.tar.gz) = 21291
diff --git a/www/py-dj42-drf-writable-nested/pkg-descr b/www/py-dj42-drf-writable-nested/pkg-descr
new file mode 100644
index 000000000000..36f9ed56df82
--- /dev/null
+++ b/www/py-dj42-drf-writable-nested/pkg-descr
@@ -0,0 +1,9 @@
+This is a writable nested model serializer for Django REST Framework which
+allows you to create/update your models with related nested data.
+
+The following relations are supported:
+
+- OneToOne (direct/reverse)
+- ForeignKey (direct/reverse)
+- ManyToMany (direct/reverse excluding m2m relations with through model)
+- GenericRelation (this is always only reverse)