pretix: add patch for fakeredis 0.25.x compat

This commit is contained in:
Martin Weinelt
2024-10-13 11:09:57 +02:00
parent d7b1d84628
commit 03b1da7bad
2 changed files with 14 additions and 0 deletions
@@ -0,0 +1,10 @@
diff --git a/src/pretix/testutils/mock.py b/src/pretix/testutils/mock.py
index 66ee3fb52..9d9ba02bd 100644
--- a/src/pretix/testutils/mock.py
+++ b/src/pretix/testutils/mock.py
@@ -38,4 +38,4 @@ def mocker_context():
def get_redis_connection(alias="default", write=True):
- return fakeredis.FakeStrictRedis(server=fakeredis.FakeServer.get_server("127.0.0.1:None:v(7, 0)", (7, 0)))
+ return fakeredis.FakeStrictRedis(server=fakeredis.FakeServer.get_server("127.0.0.1:None:v(7, 0)", (7, 0), server_type="redis"))
+4
View File
@@ -87,6 +87,9 @@ python.pkgs.buildPythonApplication rec {
# Discover pretix.plugin entrypoints during build and add them into
# INSTALLED_APPS, so that their static files are collected.
./plugin-build.patch
# TypeError: FakeServer.get_server() missing 1 required positional argument: 'server_type'
./fakeredis-0.25-compat.patch
];
pythonRelaxDeps = [
@@ -98,6 +101,7 @@ python.pkgs.buildPythonApplication rec {
"protobuf"
"pyjwt"
"python-bidi"
"redis"
"requests"
"sentry-sdk"
];