From 8e2040201c7c6d316dce4ba0ce892e64bd92b8eb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Oliv=C3=A9r=20Falvai?= Date: Fri, 25 Apr 2025 21:47:45 +0200 Subject: [PATCH] python3Packages.sanic: re-enable darwin tests --- pkgs/development/python-modules/sanic/default.nix | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/sanic/default.nix b/pkgs/development/python-modules/sanic/default.nix index 10fed42b4bda..5c5bf2c460c7 100644 --- a/pkgs/development/python-modules/sanic/default.nix +++ b/pkgs/development/python-modules/sanic/default.nix @@ -69,8 +69,6 @@ buildPythonPackage rec { ] ++ optional-dependencies.http3; - doCheck = !stdenv.hostPlatform.isDarwin; - preCheck = '' # Some tests depends on sanic on PATH PATH="$out/bin:$PATH" @@ -78,6 +76,11 @@ buildPythonPackage rec { # needed for relative paths for some packages cd tests + '' + # Work around "OSError: AF_UNIX path too long" + + lib.optionalString stdenv.hostPlatform.isDarwin '' + substituteInPlace worker/test_socket.py \ + --replace-fail '"./test.sock"' '"/tmp/test.sock"' ''; disabledTests = [