push sheeet
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s

This commit is contained in:
Dark Steveneq
2025-10-09 14:15:47 +02:00
commit 646b892680
49168 changed files with 5897842 additions and 0 deletions

View File

@@ -0,0 +1,89 @@
{
lib,
fetchFromGitHub,
pythonOlder,
buildPythonPackage,
setuptools,
# propagated
django,
lz4,
msgpack,
pyzstd,
redis,
# testing
pytest-cov-stub,
pytest-django,
pytest-mock,
pytest-xdist,
pytestCheckHook,
redisTestHook,
}:
buildPythonPackage rec {
pname = "django-redis";
version = "6.0.0";
pyproject = true;
disabled = pythonOlder "3.6";
src = fetchFromGitHub {
owner = "jazzband";
repo = "django-redis";
tag = version;
hash = "sha256-QfiyeeDQSRp/TkOun/HAQaPbIUY9yKPoOOEhKBX9Tec=";
};
build-system = [ setuptools ];
dependencies = [
django
lz4
msgpack
pyzstd
redis
];
optional-dependencies = {
hiredis = [ redis ] ++ redis.optional-dependencies.hiredis;
};
pythonImportsCheck = [ "django_redis" ];
preCheck = ''
export DJANGO_SETTINGS_MODULE=tests.settings.sqlite
'';
nativeCheckInputs = [
pytest-cov-stub
pytest-django
pytest-mock
pytest-xdist
pytestCheckHook
redisTestHook
]
++ lib.flatten (lib.attrValues optional-dependencies);
# https://github.com/jazzband/django-redis/issues/777
dontUsePytestXdist = true;
pytestFlags = [
"-Wignore::DeprecationWarning"
];
disabledTests = [
# AttributeError: <asgiref.local._CVar object at 0x7ffff57ed950> object has no attribute 'default'
"test_delete_pattern_with_settings_default_scan_count"
];
__darwinAllowLocalNetworking = true;
meta = with lib; {
description = "Full featured redis cache backend for Django";
homepage = "https://github.com/jazzband/django-redis";
changelog = "https://github.com/jazzband/django-redis/releases/tag/${version}";
license = licenses.bsd3;
maintainers = with maintainers; [ hexa ];
};
}