summaryrefslogtreecommitdiff
path: root/www/py-dj52-django-redis/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'www/py-dj52-django-redis/Makefile')
-rw-r--r--www/py-dj52-django-redis/Makefile36
1 files changed, 36 insertions, 0 deletions
diff --git a/www/py-dj52-django-redis/Makefile b/www/py-dj52-django-redis/Makefile
new file mode 100644
index 000000000000..6033fc994a25
--- /dev/null
+++ b/www/py-dj52-django-redis/Makefile
@@ -0,0 +1,36 @@
+PORTNAME= django-redis
+PORTVERSION= 5.4.0
+CATEGORIES= www databases python
+MASTER_SITES= PYPI
+PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}dj52-
+
+MAINTAINER= sunpoet@FreeBSD.org
+COMMENT= Full featured Redis cache/session backend for Django
+WWW= https://github.com/jazzband/django-redis
+
+LICENSE= BSD3CLAUSE
+LICENSE_FILE= ${WRKSRC}/LICENSE
+
+BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}setuptools>=0:devel/py-setuptools@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}wheel>=0:devel/py-wheel@${PY_FLAVOR}
+RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}django52>=3.2:www/py-django52@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}redis>=3.0.0:databases/py-redis@${PY_FLAVOR}
+TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}msgpack>=0:devel/py-msgpack@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}pytest-django>=0:devel/py-pytest-django@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}pytest-mock>=0:devel/py-pytest-mock@${PY_FLAVOR} \
+ redis-server:databases/redis
+
+USES= python:3.10+
+USE_PYTHON= autoplist concurrent pep517 pytest
+
+# Required for Python 3.11+ as the cgi module is deprecated and slated for removal in Python 3.13
+TEST_ARGS= -W ignore::DeprecationWarning
+TEST_ENV= DJANGO_SETTINGS_MODULE=settings.sqlite \
+ PYTHONPATH=${STAGEDIR}${PYTHON_SITELIBDIR}
+TEST_WRKSRC= ${WRKSRC}/tests
+
+NO_ARCH= yes
+
+CONFLICTS_INSTALL= ${PYTHON_PKGNAMEPREFIX}*django-redis
+
+.include <bsd.port.mk>