python3Packages.django-rq: 3.2.2 -> 4.0.1

https://github.com/rq/django-rq/releases/tag/v4
https://github.com/rq/django-rq/releases/tag/v4.0.1
This commit is contained in:
Martin Weinelt
2026-03-20 11:19:44 +01:00
parent 3e806238d0
commit 25c4e304fb
@@ -8,23 +8,22 @@
redis,
rq,
prometheus-client,
sentry-sdk,
pytest-django,
pytestCheckHook,
pyyaml,
redisTestHook,
}:
buildPythonPackage rec {
buildPythonPackage (finalAttrs: {
pname = "django-rq";
version = "3.2.2";
version = "4.0.1";
pyproject = true;
src = fetchFromGitHub {
owner = "rq";
repo = "django-rq";
tag = "v${version}";
hash = "sha256-vKvEFySTgIWqe6RYnl3POtjCEbCJZsRKL2KcRs9bv30=";
tag = "v${finalAttrs.version}";
hash = "sha256-7V3kZVK9YsJDYrME4LHc1+U2lk1qBJU8Vza7o3JzuU0=";
};
build-system = [ hatchling ];
@@ -37,11 +36,8 @@ buildPythonPackage rec {
optional-dependencies = {
prometheus = [ prometheus-client ];
sentry = [ sentry-sdk ];
};
pythonImportsCheck = [ "django_rq" ];
# redis hook does not support darwin
doCheck = !stdenv.hostPlatform.isDarwin;
@@ -51,7 +47,7 @@ buildPythonPackage rec {
pyyaml
redisTestHook
]
++ lib.concatAttrValues optional-dependencies;
++ lib.concatAttrValues finalAttrs.finalPackage.optional-dependencies;
preCheck = ''
export DJANGO_SETTINGS_MODULE=tests.settings
@@ -60,8 +56,8 @@ buildPythonPackage rec {
meta = {
description = "Simple app that provides django integration for RQ (Redis Queue)";
homepage = "https://github.com/rq/django-rq";
changelog = "https://github.com/rq/django-rq/releases/tag/${src.tag}";
changelog = "https://github.com/rq/django-rq/releases/tag/${finalAttrs.src.tag}";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ hexa ];
};
}
})