www/py-dj51-drf-writable-nested: New port

Clone of existing port for Django 5.1.

PR:		286533
This commit is contained in:
Sebastian
2025-05-05 17:16:57 +00:00
committed by Michael Gmelin
parent 52b4ab33fb
commit da3cd037dc
4 changed files with 36 additions and 0 deletions

View File

@@ -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

View File

@@ -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>

View File

@@ -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

View File

@@ -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)