From 15bdef7bfd6b1027ed5b426128ad20ff2be41e34 Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Sat, 11 May 2024 16:23:14 +0200 Subject: [PATCH] python312Packages.rq: fix tests on darwin --- pkgs/development/python-modules/rq/default.nix | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/pkgs/development/python-modules/rq/default.nix b/pkgs/development/python-modules/rq/default.nix index a0ed2d38b2d8..47a0a7dcfc5e 100644 --- a/pkgs/development/python-modules/rq/default.nix +++ b/pkgs/development/python-modules/rq/default.nix @@ -47,16 +47,17 @@ buildPythonPackage rec { sentry-sdk ]; - preCheck = lib.optionalString stdenv.isLinux '' + preCheck = '' PATH=$out/bin:$PATH ${redis-server}/bin/redis-server & - REDIS_PID=$! ''; - postCheck = lib.optionalString stdenv.isLinux '' - kill $REDIS_PID + postCheck = '' + kill %% ''; + __darwinAllowLocalNetworking = true; + disabledTests = [ # https://github.com/rq/rq/commit/fd261d5d8fc0fe604fa396ee6b9c9b7a7bb4142f "test_clean_large_registry"