Skip to content

Commit

Permalink
www/py-dj42-drf-writable-nested: New port
Browse files Browse the repository at this point in the history
Writable nested model serializer for Django REST framework
  • Loading branch information
grembo committed Feb 18, 2024
1 parent 0f93653 commit 6533234
Show file tree
Hide file tree
Showing 4 changed files with 36 additions and 0 deletions.
1 change: 1 addition & 0 deletions www/Makefile
Expand Up @@ -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
Expand Down
23 changes: 23 additions & 0 deletions 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>
3 changes: 3 additions & 0 deletions 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
9 changes: 9 additions & 0 deletions 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)

0 comments on commit 6533234

Please sign in to comment.