git: 9cff930c1d87 - main - www/py-dj52-drf-writable-nested: New port
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 29 Sep 2025 18:08:57 UTC
The branch main has been updated by grembo:
URL: https://cgit.FreeBSD.org/ports/commit/?id=9cff930c1d873d4cafd74a295228c5aa6e902b78
commit 9cff930c1d873d4cafd74a295228c5aa6e902b78
Author: Michael Gmelin <grembo@FreeBSD.org>
AuthorDate: 2025-09-29 17:52:08 +0000
Commit: Michael Gmelin <grembo@FreeBSD.org>
CommitDate: 2025-09-29 18:07:47 +0000
www/py-dj52-drf-writable-nested: New port
Clone of existing port for Django 5.2.
---
www/Makefile | 1 +
www/py-dj52-drf-writable-nested/Makefile | 23 +++++++++++++++++++++++
www/py-dj52-drf-writable-nested/distinfo | 3 +++
www/py-dj52-drf-writable-nested/pkg-descr | 9 +++++++++
4 files changed, 36 insertions(+)
diff --git a/www/Makefile b/www/Makefile
index 45ee81209bee..545af124766f 100644
--- a/www/Makefile
+++ b/www/Makefile
@@ -1591,6 +1591,7 @@
SUBDIR += py-dj52-djangorestframework-guardian
SUBDIR += py-dj52-drf-spectacular
SUBDIR += py-dj52-drf-spectacular-sidecar
+ SUBDIR += py-dj52-drf-writable-nested
SUBDIR += py-dj52-social-auth-app-django
SUBDIR += py-dj52-strawberry-graphql-django
SUBDIR += py-django-admin-rangefilter
diff --git a/www/py-dj52-drf-writable-nested/Makefile b/www/py-dj52-drf-writable-nested/Makefile
new file mode 100644
index 000000000000..ae7b13dc6704
--- /dev/null
+++ b/www/py-dj52-drf-writable-nested/Makefile
@@ -0,0 +1,23 @@
+PORTNAME= drf-writable-nested
+PORTVERSION= 0.7.2
+DISTVERSIONPREFIX= v
+CATEGORIES= www python
+PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}dj52-
+
+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}django52>=5.2:www/py-django52@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}dj52-djangorestframework>0:www/py-dj52-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-dj52-drf-writable-nested/distinfo b/www/py-dj52-drf-writable-nested/distinfo
new file mode 100644
index 000000000000..aaaeaf39a4e7
--- /dev/null
+++ b/www/py-dj52-drf-writable-nested/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1746380617
+SHA256 (beda-software-drf-writable-nested-v0.7.2_GH0.tar.gz) = f5553adbda96d3b604b8f9533ff21fa2e9cadb8fc538bac01c495752314b4bdb
+SIZE (beda-software-drf-writable-nested-v0.7.2_GH0.tar.gz) = 21229
diff --git a/www/py-dj52-drf-writable-nested/pkg-descr b/www/py-dj52-drf-writable-nested/pkg-descr
new file mode 100644
index 000000000000..36f9ed56df82
--- /dev/null
+++ b/www/py-dj52-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)