diff options
Diffstat (limited to 'www/py-dj52-strawberry-graphql-django')
-rw-r--r-- | www/py-dj52-strawberry-graphql-django/Makefile | 37 | ||||
-rw-r--r-- | www/py-dj52-strawberry-graphql-django/distinfo | 3 | ||||
-rw-r--r-- | www/py-dj52-strawberry-graphql-django/pkg-descr | 15 |
3 files changed, 55 insertions, 0 deletions
diff --git a/www/py-dj52-strawberry-graphql-django/Makefile b/www/py-dj52-strawberry-graphql-django/Makefile new file mode 100644 index 000000000000..88d95afad756 --- /dev/null +++ b/www/py-dj52-strawberry-graphql-django/Makefile @@ -0,0 +1,37 @@ +PORTNAME= strawberry-graphql-django +DISTVERSION= 0.60.0 +CATEGORIES= www python +MASTER_SITES= PYPI +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}dj52- +DISTNAME= strawberry_graphql_django-${DISTVERSION} + +MAINTAINER= kai@FreeBSD.org +COMMENT= Strawberry GraphQL Django extension +WWW= https://github.com/strawberry-graphql/strawberry-django + +LICENSE= MIT +LICENSE_FILE= ${WRKSRC}/LICENSE + +BUILD_DEPENDS= ${PY_SETUPTOOLS} \ + ${PYTHON_PKGNAMEPREFIX}poetry-core>=1.0.0:devel/py-poetry-core@${PY_FLAVOR} +RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}django52>=4.2:www/py-django52@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}asgiref>=3.8:www/py-asgiref@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}dj52-strawberry-graphql>=0.264.0:devel/py-dj52-strawberry-graphql@${PY_FLAVOR} + +USES= python:3.10+ +USE_PYTHON= autoplist pep517 + +CONFLICTS_INSTALL= ${PYTHON_PKGNAMEPREFIX}*${PORTNAME} + +NO_ARCH= yes + +OPTIONS_DEFINE= DEBUG-TOOLBAR ENUM +OPTIONS_DEFAULT= DEBUG-TOOLBAR ENUM + +DEBUG-TOOLBAR_DESC= Debug support +ENUM_DESC= Integration for Django's TextChoices/IntegerChoices enumerations + +DEBUG-TOOLBAR_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}dj52-django-debug-toolbar>=3.4:www/py-dj52-django-debug-toolbar@${PY_FLAVOR} +ENUM_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}dj52-django-choices-field>=2.2.2:www/py-dj52-django-choices-field@${PY_FLAVOR} + +.include <bsd.port.mk> diff --git a/www/py-dj52-strawberry-graphql-django/distinfo b/www/py-dj52-strawberry-graphql-django/distinfo new file mode 100644 index 000000000000..ed5dfad9d92e --- /dev/null +++ b/www/py-dj52-strawberry-graphql-django/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1749230619 +SHA256 (strawberry_graphql_django-0.60.0.tar.gz) = a5d210bd4458be298f86d8b1b8d01ce0208291b5b6b227cd0cfd97c51cf71ee8 +SIZE (strawberry_graphql_django-0.60.0.tar.gz) = 84511 diff --git a/www/py-dj52-strawberry-graphql-django/pkg-descr b/www/py-dj52-strawberry-graphql-django/pkg-descr new file mode 100644 index 000000000000..bea2083c6410 --- /dev/null +++ b/www/py-dj52-strawberry-graphql-django/pkg-descr @@ -0,0 +1,15 @@ +This package provides powerful tools to generate GraphQL types, queries, +mutations and resolvers from Django models. + +Supported Features: + +* GraphQL type generation from models +* Filtering, pagination and ordering +* Basic create, retrieve, update and delete (CRUD) types and mutations +* Basic Django auth support, current user query, login and logout mutations +* Django sync and async views +* Permission extension using django's permissioning system +* Relay support with automatic resolvers generation +* Query optimization to improve performance and avoid common pitfalls (e.g n+1) +* Debug Toolbar integration with graphiql to display metrics like SQL queries +* Unit test integration |