git: 6533234e4fa9 - main - www/py-dj42-drf-writable-nested: New port

From: Michael Gmelin <grembo_at_FreeBSD.org>
Date: Sun, 18 Feb 2024 14:53:21 UTC
The branch main has been updated by grembo:

URL: https://cgit.FreeBSD.org/ports/commit/?id=6533234e4fa93581e550815869e6af8db44349aa

commit 6533234e4fa93581e550815869e6af8db44349aa
Author:     Michael Gmelin <grembo@FreeBSD.org>
AuthorDate: 2024-02-12 16:47:39 +0000
Commit:     Michael Gmelin <grembo@FreeBSD.org>
CommitDate: 2024-02-18 14:52:55 +0000

    www/py-dj42-drf-writable-nested: New port
    
    Writable nested model serializer for Django REST framework
---
 www/Makefile                              |  1 +
 www/py-dj42-drf-writable-nested/Makefile  | 23 +++++++++++++++++++++++
 www/py-dj42-drf-writable-nested/distinfo  |  3 +++
 www/py-dj42-drf-writable-nested/pkg-descr |  9 +++++++++
 4 files changed, 36 insertions(+)

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)