git: 5ea9b3e4ba71 - main - www/py-social-auth-app-django: New port

From: Kai Knoblich <kai_at_FreeBSD.org>
Date: Fri, 31 Dec 2021 11:24:54 UTC
The branch main has been updated by kai:

URL: https://cgit.FreeBSD.org/ports/commit/?id=5ea9b3e4ba7181383beaa11049310fe6e6acfabb

commit 5ea9b3e4ba7181383beaa11049310fe6e6acfabb
Author:     Kai Knoblich <kai@FreeBSD.org>
AuthorDate: 2021-12-31 11:17:26 +0000
Commit:     Kai Knoblich <kai@FreeBSD.org>
CommitDate: 2021-12-31 11:17:26 +0000

    www/py-social-auth-app-django: New port
    
    Python Social Auth is an easy to setup social
    authentication/registration mechanism with support for several
    frameworks and auth providers.
    
    This is the Django component of the python-social-auth ecosystem, it
    implements the needed functionality to integrate social-auth-core in
    a Django based project.
    
    WWW: https://github.com/python-social-auth/social-app-django
---
 www/Makefile                            |  1 +
 www/py-social-auth-app-django/Makefile  | 30 ++++++++++++++++++++++++++++++
 www/py-social-auth-app-django/distinfo  |  3 +++
 www/py-social-auth-app-django/pkg-descr |  8 ++++++++
 4 files changed, 42 insertions(+)

diff --git a/www/Makefile b/www/Makefile
index d3069ec2e575..d5f02119f181 100644
--- a/www/Makefile
+++ b/www/Makefile
@@ -1777,6 +1777,7 @@
     SUBDIR += py-sentinelhub
     SUBDIR += py-slimit
     SUBDIR += py-slumber
+    SUBDIR += py-social-auth-app-django
     SUBDIR += py-sockjs-tornado
     SUBDIR += py-soupsieve
     SUBDIR += py-splinter
diff --git a/www/py-social-auth-app-django/Makefile b/www/py-social-auth-app-django/Makefile
new file mode 100644
index 000000000000..74d744a59dbe
--- /dev/null
+++ b/www/py-social-auth-app-django/Makefile
@@ -0,0 +1,30 @@
+PORTNAME=	social-auth-app-django
+DISTVERSION=	4.0.0
+CATEGORIES=	www security python
+PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
+
+MAINTAINER=	kai@FreeBSD.org
+COMMENT=	Social Authentication and Django integration
+
+LICENSE=	BSD3CLAUSE
+LICENSE_FILE=	${WRKSRC}/LICENSE
+
+RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}six>0:devel/py-six@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}social-auth-core>=3.3.0:security/py-social-auth-core@${PY_FLAVOR}
+TEST_DEPENDS=	${PYTHON_PKGNAMEPREFIX}django22>0:devel/py-django22@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}mock>0:devel/py-mock@${PY_FLAVOR}
+
+USES=		python:3.6+
+USE_GITHUB=	yes
+GH_ACCOUNT=	python-social-auth
+GH_PROJECT=	social-app-django
+USE_PYTHON=	autoplist distutils
+
+TEST_ENV=	PYTHONPATH=${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}
+
+NO_ARCH=	yes
+
+do-test:
+	@cd ${WRKSRC} && ${SETENV} ${TEST_ENV} ${PYTHON_CMD} manage.py test -v3
+
+.include <bsd.port.mk>
diff --git a/www/py-social-auth-app-django/distinfo b/www/py-social-auth-app-django/distinfo
new file mode 100644
index 000000000000..55df4421f55c
--- /dev/null
+++ b/www/py-social-auth-app-django/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1640894660
+SHA256 (python-social-auth-social-app-django-4.0.0_GH0.tar.gz) = 5c030bf14c101b26a9039aa4395507b03f70be3a1ba1001f49c550108d0b51d1
+SIZE (python-social-auth-social-app-django-4.0.0_GH0.tar.gz) = 25493
diff --git a/www/py-social-auth-app-django/pkg-descr b/www/py-social-auth-app-django/pkg-descr
new file mode 100644
index 000000000000..1630d7a660c0
--- /dev/null
+++ b/www/py-social-auth-app-django/pkg-descr
@@ -0,0 +1,8 @@
+Python Social Auth is an easy to setup social authentication/registration
+mechanism with support for several frameworks and auth providers.
+
+This is the Django component of the python-social-auth ecosystem, it implements
+the needed functionality to integrate social-auth-core in a Django based
+project.
+
+WWW: https://github.com/python-social-auth/social-app-django