pythonPackages.black: fix tests in sandbox mode on Darwin

Fixes #63722
This commit is contained in:
Sébastien Maret 2019-06-24 16:13:43 +02:00 committed by Frederik Rietdijk
parent bdc4d57ef7
commit 13702bd491

View File

@ -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 \