summaryrefslogtreecommitdiff
path: root/www/py-dj52-django-redis
diff options
context:
space:
mode:
Diffstat (limited to 'www/py-dj52-django-redis')
-rw-r--r--www/py-dj52-django-redis/Makefile37
-rw-r--r--www/py-dj52-django-redis/distinfo3
-rw-r--r--www/py-dj52-django-redis/pkg-descr15
3 files changed, 55 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..5076cb3ad1f5
--- /dev/null
+++ b/www/py-dj52-django-redis/Makefile
@@ -0,0 +1,37 @@
+PORTNAME= django-redis
+PORTVERSION= 6.0.0
+CATEGORIES= www databases python
+MASTER_SITES= PYPI
+PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}dj52-
+DISTNAME= django_redis-${PORTVERSION}
+
+MAINTAINER= sunpoet@FreeBSD.org
+COMMENT= Full featured redis cache 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>=4.2:www/py-django52@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}redis>=4.0.2: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>
diff --git a/www/py-dj52-django-redis/distinfo b/www/py-dj52-django-redis/distinfo
new file mode 100644
index 000000000000..1ef0b7f1dca8
--- /dev/null
+++ b/www/py-dj52-django-redis/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1751208160
+SHA256 (django_redis-6.0.0.tar.gz) = 2d9cb12a20424a4c4dde082c6122f486628bae2d9c2bee4c0126a4de7fda00dd
+SIZE (django_redis-6.0.0.tar.gz) = 56904
diff --git a/www/py-dj52-django-redis/pkg-descr b/www/py-dj52-django-redis/pkg-descr
new file mode 100644
index 000000000000..ab566f948f78
--- /dev/null
+++ b/www/py-dj52-django-redis/pkg-descr
@@ -0,0 +1,15 @@
+Django-redis is a BSD Licensed, full featured Redis cache/session
+backend for Django.
+
+Why use django-redis?
+
+ * Modular client system (pluggable clients).
+ * Master-Slave support in the default client.
+ * Used in production in several projects as cache and session storage.
+ * Supports infinite timeouts.
+ * Python 3 support in same code base.
+ * Facilities for raw access to Redis client/connection pool.
+ * Highly configurable (can emulate memcached exception behavior, for
+ example).
+ * Unix sockets supported by default.
+ * Pluggable parsers.