python3Packages.rq: 2.7 -> 2.8 (#512359)

This commit is contained in:
Martin Weinelt
2026-04-25 09:12:20 +00:00
committed by GitHub
2 changed files with 27 additions and 7 deletions
@@ -53,6 +53,11 @@ buildPythonPackage (finalAttrs: {
export DJANGO_SETTINGS_MODULE=tests.settings
'';
disabledTests = [
# ValueError: Job ID must only contain letters, numbers, underscores and dashes
"test_scheduled_jobs"
];
meta = {
description = "Simple app that provides django integration for RQ (Redis Queue)";
homepage = "https://github.com/rq/django-rq";
+22 -7
View File
@@ -3,6 +3,7 @@
stdenv,
fetchFromGitHub,
buildPythonPackage,
pythonAtLeast,
# build-system
hatchling,
@@ -22,14 +23,15 @@
buildPythonPackage (finalAttrs: {
pname = "rq";
version = "2.7";
version = "2.8";
pyproject = true;
__structuredAttrs = true;
src = fetchFromGitHub {
owner = "rq";
repo = "rq";
tag = "v${finalAttrs.version}";
hash = "sha256-332K+n3mWf+k7/QvIFJFhuDXqd1t2p8ZVv/l+Y167Bk=";
hash = "sha256-ZO67rsqub9hBUt4XMqrx+P7Dj1dEKD9zp4O5x1Kehe0=";
};
build-system = [ hatchling ];
@@ -57,11 +59,24 @@ buildPythonPackage (finalAttrs: {
# redisTestHook does not work on darwin-x86_64
doCheck = !(stdenv.hostPlatform.isDarwin && stdenv.hostPlatform.isx86_64);
disabledTests = lib.optionals stdenv.hostPlatform.isDarwin [
# PermissionError: [Errno 13] Permission denied: '/tmp/rq-tests.txt'
"test_deleted_jobs_arent_executed"
"test_suspend_worker_execution"
];
disabledTests =
lib.optionals
((pythonAtLeast "3.14") && stdenv.hostPlatform.isLinux && stdenv.hostPlatform.isAarch64)
[
# AssertionError
"test_create_job_with_ttl_should_expire"
"test_execution_order_with_dual_dependency"
"test_execution_order_with_sole_dependency"
"test_sigint_handling"
"test_successful_job_repeat"
"test_suspend_worker_execution"
"test_work"
]
++ lib.optionals stdenv.hostPlatform.isDarwin [
# PermissionError: [Errno 13] Permission denied: '/tmp/rq-tests.txt'
"test_deleted_jobs_arent_executed"
"test_suspend_worker_execution"
];
pythonImportsCheck = [ "rq" ];