diff --git a/pkgs/development/python-modules/django-rq/default.nix b/pkgs/development/python-modules/django-rq/default.nix index 43859c8dcbeb..a946f4d89b54 100644 --- a/pkgs/development/python-modules/django-rq/default.nix +++ b/pkgs/development/python-modules/django-rq/default.nix @@ -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"; diff --git a/pkgs/development/python-modules/rq/default.nix b/pkgs/development/python-modules/rq/default.nix index 246d508816a8..8f3c55996e7d 100644 --- a/pkgs/development/python-modules/rq/default.nix +++ b/pkgs/development/python-modules/rq/default.nix @@ -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" ];