Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 31 Mar 2024 14:37:39 GMT
From:      Kai Knoblich <kai@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: 20ae8fa42c29 - main - www/py-strawberry-graphql-django: New port
Message-ID:  <202403311437.42VEbdaP001837@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by kai:

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

commit 20ae8fa42c295517d587de9c226cac67397d5a69
Author:     Kai Knoblich <kai@FreeBSD.org>
AuthorDate: 2024-03-31 14:16:52 +0000
Commit:     Kai Knoblich <kai@FreeBSD.org>
CommitDate: 2024-03-31 14:34:36 +0000

    www/py-strawberry-graphql-django: New port
    
    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
    
    https://github.com/strawberry-graphql/strawberry-django
---
 www/Makefile                               |  1 +
 www/py-strawberry-graphql-django/Makefile  | 34 ++++++++++++++++++++++++++++++
 www/py-strawberry-graphql-django/distinfo  |  3 +++
 www/py-strawberry-graphql-django/pkg-descr | 15 +++++++++++++
 4 files changed, 53 insertions(+)

diff --git a/www/Makefile b/www/Makefile
index 2d6c2f6a1bc9..d688b7b84844 100644
--- a/www/Makefile
+++ b/www/Makefile
@@ -1844,6 +1844,7 @@
     SUBDIR += py-spyne
     SUBDIR += py-sseclient
     SUBDIR += py-starlette
+    SUBDIR += py-strawberry-graphql-django
     SUBDIR += py-swapper
     SUBDIR += py-textile
     SUBDIR += py-ticketutil
diff --git a/www/py-strawberry-graphql-django/Makefile b/www/py-strawberry-graphql-django/Makefile
new file mode 100644
index 000000000000..55cb3ce0d6ab
--- /dev/null
+++ b/www/py-strawberry-graphql-django/Makefile
@@ -0,0 +1,34 @@
+PORTNAME=	strawberry-graphql-django
+DISTVERSION=	0.36.0
+CATEGORIES=	www python
+MASTER_SITES=	PYPI
+PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
+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}django32>=3.2:www/py-django32@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}strawberry-graphql>=0.212.0:devel/py-strawberry-graphql@${PY_FLAVOR}
+
+USES=		python
+USE_PYTHON=	autoplist pep517
+
+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}django-debug-toolbar>=3.4:www/py-django-debug-toolbar@${PY_FLAVOR}
+ENUM_RUN_DEPENDS=		${PYTHON_PKGNAMEPREFIX}django-choices-field>=2.2.2:www/py-django-choices-field@${PY_FLAVOR}
+
+.include <bsd.port.mk>
diff --git a/www/py-strawberry-graphql-django/distinfo b/www/py-strawberry-graphql-django/distinfo
new file mode 100644
index 000000000000..f6b3b3932c73
--- /dev/null
+++ b/www/py-strawberry-graphql-django/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1711884002
+SHA256 (strawberry_graphql_django-0.36.0.tar.gz) = 37b7875a49b72e405ab275efcd6fe953a45cf9b3e2c45d57bae9113cbe8d18c5
+SIZE (strawberry_graphql_django-0.36.0.tar.gz) = 68951
diff --git a/www/py-strawberry-graphql-django/pkg-descr b/www/py-strawberry-graphql-django/pkg-descr
new file mode 100644
index 000000000000..bea2083c6410
--- /dev/null
+++ b/www/py-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



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