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" ];