From 58524356c4af59b8beeebf8d49b98147f285bed6 Mon Sep 17 00:00:00 2001 From: Thiago Kenji Okada Date: Sun, 7 Nov 2021 21:02:38 -0300 Subject: [PATCH] python3Packages.sanic: disable failing tests on aarch64-linux --- pkgs/development/python-modules/sanic/default.nix | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/pkgs/development/python-modules/sanic/default.nix b/pkgs/development/python-modules/sanic/default.nix index ae15567a29cd..47f69183d685 100644 --- a/pkgs/development/python-modules/sanic/default.nix +++ b/pkgs/development/python-modules/sanic/default.nix @@ -5,7 +5,6 @@ , buildPythonPackage , doCheck ? true , fetchFromGitHub -, fetchpatch , gunicorn , httptools , multidict @@ -68,8 +67,8 @@ buildPythonPackage rec { inherit doCheck; preCheck = '' - # Some tests depends on executables on PATH - PATH="$out/bin:${gunicorn}/bin:$PATH" + # Some tests depends on sanic on PATH + PATH="$out/bin:$PATH" ''; disabledTests = [ @@ -87,6 +86,16 @@ buildPythonPackage rec { ] ++ lib.optionals stdenv.isDarwin [ # https://github.com/sanic-org/sanic/issues/2298 "test_no_exceptions_when_cancel_pending_request" + ] ++ lib.optionals (stdenv.hostPlatform.system == "aarch64-linux") [ + # These appear to be very sensitive to output of commands + # Output is different on aarch64 + "test_server_run" + "test_host_port" + "test_num_workers" + "test_access_logs" + "test_version" + # Failing for a different reason than Darwin + "test_no_exceptions_when_cancel_pending_request" ]; # avoid usage of nixpkgs-review in darwin since tests will compete usage