python3Packages.django-redis: 5.4.0 -> 6.0.0

https://github.com/jazzband/django-redis/releases/tag/6.0.0
This commit is contained in:
Martin Weinelt
2025-06-28 01:26:19 +02:00
parent bd64384166
commit bbea7d1df4
@@ -7,22 +7,23 @@
# propagated
django,
hiredis,
lz4,
msgpack,
pyzstd,
redis,
# testing
pkgs,
pytest-cov-stub,
pytest-django,
pytest-mock,
pytest-xdist,
pytestCheckHook,
redisTestHook,
}:
buildPythonPackage rec {
pname = "django-redis";
version = "5.4.0";
version = "6.0.0";
pyproject = true;
disabled = pythonOlder "3.6";
@@ -31,15 +32,16 @@ buildPythonPackage rec {
owner = "jazzband";
repo = "django-redis";
tag = version;
hash = "sha256-m7z3c7My24vrSSnyfDQ/LlWhy7pV4U0L8LATMvkfczc=";
hash = "sha256-QfiyeeDQSRp/TkOun/HAQaPbIUY9yKPoOOEhKBX9Tec=";
};
build-system = [ setuptools ];
propagatedBuildInputs = [
dependencies = [
django
lz4
msgpack
pyzstd
redis
];
@@ -51,37 +53,23 @@ buildPythonPackage rec {
preCheck = ''
export DJANGO_SETTINGS_MODULE=tests.settings.sqlite
${pkgs.valkey}/bin/redis-server &
REDIS_PID=$!
'';
postCheck = ''
kill $REDIS_PID
'';
nativeCheckInputs = [
pytest-cov-stub
pytest-django
pytest-mock
pytest-xdist
pytestCheckHook
redisTestHook
] ++ lib.flatten (lib.attrValues optional-dependencies);
pytestFlagsArray = [
"-W"
"ignore::DeprecationWarning"
];
# https://github.com/jazzband/django-redis/issues/777
dontUsePytestXdist = true;
disabledTests = [
# ModuleNotFoundError: No module named 'test_cache_options'
"test_custom_key_function"
# ModuleNotFoundError: No module named 'test_client'
"test_delete_pattern_calls_delete_for_given_keys"
"test_delete_pattern_calls_get_client_given_no_client"
"test_delete_pattern_calls_make_pattern"
"test_delete_pattern_calls_pipeline_delete_and_execute"
"test_delete_pattern_calls_scan_iter"
"test_delete_pattern_calls_scan_iter_with_count_if_itersize_given"
# AttributeError: <asgiref.local._CVar object at 0x7ffff57ed950> object has no attribute 'default'
"test_delete_pattern_with_settings_default_scan_count"
];
__darwinAllowLocalNetworking = true;