diff --git a/pkgs/development/python-modules/black/default.nix b/pkgs/development/python-modules/black/default.nix index fc729dd399d..f17f94387f3 100644 --- a/pkgs/development/python-modules/black/default.nix +++ b/pkgs/development/python-modules/black/default.nix @@ -15,6 +15,10 @@ buildPythonPackage rec { checkInputs = [ pytest glibcLocales ]; + # Necessary for the tests to pass on Darwin with sandbox enabled. + # Black starts a local server and needs to bind a local address. + __darwinAllowLocalNetworking = true; + # Don't know why these tests fails checkPhase = '' LC_ALL="en_US.UTF-8" pytest \