python3.pkgs.django-q: fix for Hyperkitty

mailmanPackages.hyperkitty was marked transiently broken, since it
depends on django-q, even though its Python package set overrides
redis to a verison compatible with django-q.

At the same time, hiredis was moved to being an optional dependency of
django-redis.  It's required by django-q, so use it here.

Fixes: 5cebbd4be4 ("python311Packages.django-q: mark as broken")
This commit is contained in:
Alyssa Ross 2023-11-06 16:31:31 +01:00
parent 92fb22dc0a
commit 771cae0903

View File

@ -15,6 +15,7 @@
, pytest-mock
, pytestCheckHook
, pythonOlder
, redis
}:
buildPythonPackage rec {
@ -55,7 +56,7 @@ buildPythonPackage rec {
pytest-django
pytest-mock
pytestCheckHook
];
] ++ django-redis.optional-dependencies.hiredis;
pythonImportsCheck = [
"django_q"
@ -86,6 +87,6 @@ buildPythonPackage rec {
maintainers = with maintainers; [ gador ];
# django-q is unmaintained at the moment
# https://github.com/Koed00/django-q/issues/733
broken = true;
broken = lib.versionAtLeast redis.version "5";
};
}