From b51bc901f1b5a64c9a05df2d18c41d39ef65b66f Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Fri, 30 Oct 2020 23:40:36 +0100 Subject: [PATCH] python3Packages.anyio: disable all socket-related tests on darwin They don't work in their sandbox. --- pkgs/development/python-modules/anyio/default.nix | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/pkgs/development/python-modules/anyio/default.nix b/pkgs/development/python-modules/anyio/default.nix index 516b8520f00e..f79bf23896fd 100644 --- a/pkgs/development/python-modules/anyio/default.nix +++ b/pkgs/development/python-modules/anyio/default.nix @@ -1,4 +1,5 @@ -{ lib +{ stdenv +, lib , buildPythonPackage , fetchFromGitHub , pythonOlder @@ -45,6 +46,9 @@ buildPythonPackage rec { pytestFlagsArray = [ # lots of DNS lookups "--ignore=tests/test_sockets.py" + ] ++ lib.optionals stdenv.isDarwin [ + # darwin sandboxing limitations + "--ignore=tests/streams/test_tls.py" ]; pythonImportsCheck = [ "anyio" ];