From ae8e51d81792575427596d28980ba4933a944a07 Mon Sep 17 00:00:00 2001 From: Thibault Gagnaux Date: Sat, 23 Nov 2024 11:24:34 +0100 Subject: [PATCH] python312Packages.amqp: disable flaky test on darwin. --- pkgs/development/python-modules/amqp/default.nix | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/pkgs/development/python-modules/amqp/default.nix b/pkgs/development/python-modules/amqp/default.nix index d1d9733b6743..2882bd23bde7 100644 --- a/pkgs/development/python-modules/amqp/default.nix +++ b/pkgs/development/python-modules/amqp/default.nix @@ -1,4 +1,5 @@ { + stdenv, lib, buildPythonPackage, fetchPypi, @@ -29,10 +30,15 @@ buildPythonPackage rec { pytest-rerunfailures ]; - disabledTests = [ - # Requires network access - "test_rmq.py" - ]; + disabledTests = + [ + # Requires network access + "test_rmq.py" + ] + ++ lib.optionals stdenv.hostPlatform.isDarwin [ + # Requires network access but fails on macos only + "test_connection.py" + ]; pythonImportsCheck = [ "amqp" ];