git: 885a0659dc68 - main - www/py-dj42-django-allauth: New port

From: Michael Gmelin <grembo_at_FreeBSD.org>
Date: Sun, 18 Feb 2024 14:41:30 UTC
The branch main has been updated by grembo:

URL: https://cgit.FreeBSD.org/ports/commit/?id=885a0659dc6890dfb753f1593b275f6c1734b517

commit 885a0659dc6890dfb753f1593b275f6c1734b517
Author:     Michael Gmelin <grembo@FreeBSD.org>
AuthorDate: 2024-02-12 15:32:28 +0000
Commit:     Michael Gmelin <grembo@FreeBSD.org>
CommitDate: 2024-02-18 14:39:57 +0000

    www/py-dj42-django-allauth: New port
    
    Django 4.2 version of www/py-django-allauth, happy to pass it to its
    maintainer or make it disappear, once 4.2 is the default django version.
---
 www/Makefile                         |  1 +
 www/py-dj42-django-allauth/Makefile  | 38 ++++++++++++++++++++++++++++++++++++
 www/py-dj42-django-allauth/distinfo  |  3 +++
 www/py-dj42-django-allauth/pkg-descr |  2 ++
 4 files changed, 44 insertions(+)

diff --git a/www/Makefile b/www/Makefile
index 1575878b90c4..4a37ba73b4c0 100644
--- a/www/Makefile
+++ b/www/Makefile
@@ -1489,6 +1489,7 @@
     SUBDIR += py-cssutils
     SUBDIR += py-daphne
     SUBDIR += py-dj-database-url
+    SUBDIR += py-dj42-django-allauth
     SUBDIR += py-dj42-django-auth-ldap
     SUBDIR += py-dj42-django-cors-headers
     SUBDIR += py-dj42-django-debug-toolbar
diff --git a/www/py-dj42-django-allauth/Makefile b/www/py-dj42-django-allauth/Makefile
new file mode 100644
index 000000000000..971f6971067e
--- /dev/null
+++ b/www/py-dj42-django-allauth/Makefile
@@ -0,0 +1,38 @@
+PORTNAME=	django-allauth
+PORTVERSION=	0.59.0
+CATEGORIES=	www python
+MASTER_SITES=	PYPI
+PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}dj42-
+
+MAINTAINER=	grembo@FreeBSD.org
+COMMENT=	User registration with social account authentication
+WWW=		https://allauth.org/ \
+		https://docs.allauth.org/en/latest/ \
+		https://github.com/pennersr/django-allauth
+
+LICENSE=	MIT
+LICENSE_FILE=	${WRKSRC}/LICENSE
+
+BUILD_DEPENDS=	${PYTHON_PKGNAMEPREFIX}setuptools>=40.8.0:devel/py-setuptools@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}wheel>=0:devel/py-wheel@${PY_FLAVOR}
+RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}django42>=3.2:www/py-django42@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}pyjwt>=1.7:www/py-pyjwt@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}python3-openid>=3.0.8:security/py-python3-openid@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}requests>=2.0.0:www/py-requests@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}requests-oauthlib>=0.3.0:www/py-requests-oauthlib@${PY_FLAVOR}
+
+USES=		python
+USE_PYTHON=	autoplist concurrent pep517
+
+CONFLICTS_INSTALL=	${PYTHON_PKGNAMEPREFIX}*${PORTNAME}
+
+NO_ARCH=	yes
+
+OPTIONS_DEFINE=	MFA SAML
+MFA_DESC=	Multi-Factor Authentication support
+SAML_DESC=	Security Assertion Markup Language support
+
+MFA_RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}qrcode>=7.0.0:textproc/py-qrcode@${PY_FLAVOR}
+SAML_RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}python3-saml>=1.15.0<2.0.0:security/py-python3-saml@${PY_FLAVOR}
+
+.include <bsd.port.mk>
diff --git a/www/py-dj42-django-allauth/distinfo b/www/py-dj42-django-allauth/distinfo
new file mode 100644
index 000000000000..83cadbde3754
--- /dev/null
+++ b/www/py-dj42-django-allauth/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1702543708
+SHA256 (django-allauth-0.59.0.tar.gz) = ec19efb80b34d2f18bd831eab9b10b6301f58d1cce9f39af35f497b7e5b0a141
+SIZE (django-allauth-0.59.0.tar.gz) = 926120
diff --git a/www/py-dj42-django-allauth/pkg-descr b/www/py-dj42-django-allauth/pkg-descr
new file mode 100644
index 000000000000..83cdfd8f3fe9
--- /dev/null
+++ b/www/py-dj42-django-allauth/pkg-descr
@@ -0,0 +1,2 @@
+django-allauth is a reusable Django app that allows for both local and social
+authentication, with flows that just work.