git: 02f80f02a4e2 - main - www/py-django-graphql-jwt: New port

From: Muhammad Moinur Rahman <bofh_at_FreeBSD.org>
Date: Thu, 10 Oct 2024 08:05:41 UTC
The branch main has been updated by bofh:

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

commit 02f80f02a4e26a13bf0bd3959c37b157a0c86fdb
Author:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
AuthorDate: 2024-10-09 14:06:49 +0000
Commit:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
CommitDate: 2024-10-10 08:05:07 +0000

    www/py-django-graphql-jwt: New port
    
    JSON Web Token for Django GraphQL
    
    JSON Web Token (JWT) authentication for Graphene Django
    
    WWW: https://github.com/flavors/django-graphql-jwt
    
    Sponsored by:   The FreeBSD Foundation
---
 www/Makefile                        |  1 +
 www/py-django-graphql-jwt/Makefile  | 26 ++++++++++++++++++++++++++
 www/py-django-graphql-jwt/distinfo  |  3 +++
 www/py-django-graphql-jwt/pkg-descr |  1 +
 4 files changed, 31 insertions(+)

diff --git a/www/Makefile b/www/Makefile
index 2c5f18ea03c1..84df6273cce9 100644
--- a/www/Makefile
+++ b/www/Makefile
@@ -1551,6 +1551,7 @@
     SUBDIR += py-django-formset-js-improved
     SUBDIR += py-django-formtools
     SUBDIR += py-django-graphiql-debug-toolbar
+    SUBDIR += py-django-graphql-jwt
     SUBDIR += py-django-gravatar2
     SUBDIR += py-django-guardian
     SUBDIR += py-django-hashid-field
diff --git a/www/py-django-graphql-jwt/Makefile b/www/py-django-graphql-jwt/Makefile
new file mode 100644
index 000000000000..98db9382fdf8
--- /dev/null
+++ b/www/py-django-graphql-jwt/Makefile
@@ -0,0 +1,26 @@
+PORTNAME=	django-graphql-jwt
+DISTVERSION=	0.4.0
+CATEGORIES=	www python
+MASTER_SITES=	PYPI
+PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
+DISTNAME=	${PORTNAME:S/-/_/g}-${DISTVERSION}
+
+MAINTAINER=	bofh@FreeBSD.org
+COMMENT=	JSON Web Token for Django GraphQL
+WWW=		https://github.com/flavors/django-graphql-jwt
+
+LICENSE=	MIT
+LICENSE_FILE=	${WRKSRC}/LICENSE
+
+BUILD_DEPENDS=	${PYTHON_PKGNAMEPREFIX}hatchling>0:devel/py-hatchling@${PY_FLAVOR}
+RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}django42>=2.0:www/py-django42@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}graphene>=2.1.5:devel/py-graphene@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}graphene-django>=3.0.0:devel/py-graphene-django@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}pyjwt>=2:www/py-pyjwt@${PY_FLAVOR}
+
+USES=		python
+USE_PYTHON=	autoplist pep517
+
+NO_ARCH=	yes
+
+.include <bsd.port.mk>
diff --git a/www/py-django-graphql-jwt/distinfo b/www/py-django-graphql-jwt/distinfo
new file mode 100644
index 000000000000..60e86e502f17
--- /dev/null
+++ b/www/py-django-graphql-jwt/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1728482465
+SHA256 (django_graphql_jwt-0.4.0.tar.gz) = 537972519f0deeec7a0e4a306ddfed1fe385266ef61c9f78c54cd04ac01a171e
+SIZE (django_graphql_jwt-0.4.0.tar.gz) = 20668
diff --git a/www/py-django-graphql-jwt/pkg-descr b/www/py-django-graphql-jwt/pkg-descr
new file mode 100644
index 000000000000..4ee7dfe89aea
--- /dev/null
+++ b/www/py-django-graphql-jwt/pkg-descr
@@ -0,0 +1 @@
+JSON Web Token (JWT) authentication for Graphene Django