summaryrefslogtreecommitdiff
path: root/www/py-dj52-social-auth-app-django/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'www/py-dj52-social-auth-app-django/Makefile')
-rw-r--r--www/py-dj52-social-auth-app-django/Makefile34
1 files changed, 34 insertions, 0 deletions
diff --git a/www/py-dj52-social-auth-app-django/Makefile b/www/py-dj52-social-auth-app-django/Makefile
new file mode 100644
index 000000000000..db3778e0f22b
--- /dev/null
+++ b/www/py-dj52-social-auth-app-django/Makefile
@@ -0,0 +1,34 @@
+PORTNAME= social-auth-app-django
+DISTVERSION= 5.4.3
+CATEGORIES= www security python
+PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}dj52-
+
+MAINTAINER= kai@FreeBSD.org
+COMMENT= Social Authentication and Django integration
+WWW= https://github.com/python-social-auth/social-app-django
+
+LICENSE= BSD3CLAUSE
+LICENSE_FILE= ${WRKSRC}/LICENSE
+
+BUILD_DEPENDS= ${PY_SETUPTOOLS} \
+ ${PYTHON_PKGNAMEPREFIX}wheel>0:devel/py-wheel@${PY_FLAVOR}
+RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}django52>=3.2:www/py-django52@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}social-auth-core>=4.4<5:security/py-social-auth-core@${PY_FLAVOR}
+TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}mock>0:devel/py-mock@${PY_FLAVOR}
+
+USES= python:3.10+
+USE_GITHUB= yes
+GH_ACCOUNT= python-social-auth
+GH_PROJECT= social-app-django
+USE_PYTHON= autoplist pep517
+
+TEST_ENV= PYTHONPATH=${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}
+
+CONFLICTS_INSTALL= ${PYTHON_PKGNAMEPREFIX}*${PORTNAME}
+
+NO_ARCH= yes
+
+do-test:
+ @cd ${WRKSRC} && ${SETENV} ${TEST_ENV} ${PYTHON_CMD} manage.py test -v3
+
+.include <bsd.port.mk>