Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 5 May 2025 18:02:32 GMT
From:      Michael Gmelin <grembo@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: da3cd037dc3a - main - www/py-dj51-drf-writable-nested: New port
Message-ID:  <202505051802.545I2WpC077920@gitrepo.freebsd.org>

index | next in thread | raw e-mail

The branch main has been updated by grembo:

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

commit da3cd037dc3a7b19750d0e620467cfa6ea9403b4
Author:     Sebastian <sko@rostwald.de>
AuthorDate: 2025-05-05 17:16:57 +0000
Commit:     Michael Gmelin <grembo@FreeBSD.org>
CommitDate: 2025-05-05 18:02:06 +0000

    www/py-dj51-drf-writable-nested: New port
    
    Clone of existing port for Django 5.1.
    
    PR:             286533
---
 www/Makefile                              |  1 +
 www/py-dj51-drf-writable-nested/Makefile  | 23 +++++++++++++++++++++++
 www/py-dj51-drf-writable-nested/distinfo  |  3 +++
 www/py-dj51-drf-writable-nested/pkg-descr |  9 +++++++++
 4 files changed, 36 insertions(+)

diff --git a/www/Makefile b/www/Makefile
index 2d3fc25ef7c5..83251e24bacd 100644
--- a/www/Makefile
+++ b/www/Makefile
@@ -1557,6 +1557,7 @@
     SUBDIR += py-dj51-djangorestframework
     SUBDIR += py-dj51-drf-spectacular
     SUBDIR += py-dj51-drf-spectacular-sidecar
+    SUBDIR += py-dj51-drf-writable-nested
     SUBDIR += py-dj51-social-auth-app-django
     SUBDIR += py-dj51-strawberry-graphql-django
     SUBDIR += py-django-admin-rangefilter
diff --git a/www/py-dj51-drf-writable-nested/Makefile b/www/py-dj51-drf-writable-nested/Makefile
new file mode 100644
index 000000000000..0a08d4599ef0
--- /dev/null
+++ b/www/py-dj51-drf-writable-nested/Makefile
@@ -0,0 +1,23 @@
+PORTNAME=	drf-writable-nested
+PORTVERSION=	0.7.2
+DISTVERSIONPREFIX=	v
+CATEGORIES=	www python
+PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}dj51-
+
+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}django51>=5.1:www/py-django51@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}dj51-djangorestframework>0:www/py-dj51-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-dj51-drf-writable-nested/distinfo b/www/py-dj51-drf-writable-nested/distinfo
new file mode 100644
index 000000000000..aaaeaf39a4e7
--- /dev/null
+++ b/www/py-dj51-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-dj51-drf-writable-nested/pkg-descr b/www/py-dj51-drf-writable-nested/pkg-descr
new file mode 100644
index 000000000000..36f9ed56df82
--- /dev/null
+++ b/www/py-dj51-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)


home | help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202505051802.545I2WpC077920>