pythonPackages.black: fix tests in sandbox mode on Darwin
Fixes #63722
commit13702bd49198f274d727bc3b643824074bc1799a
authorSébastien Maret <sebastien.maret@icloud.com>
dateMon 24 Jun 2019, 16:13 (7 years ago)
parentbdc4d57
pkgs/development/python-modules/black/default.nix+4
@@ -15,6 +15,10 @@ buildPythonPackage rec {
1515
1616 checkInputs = [ pytest glibcLocales ];
1717
18+ # Necessary for the tests to pass on Darwin with sandbox enabled.
19+ # Black starts a local server and needs to bind a local address.
20+ __darwinAllowLocalNetworking = true;
21+
1822 # Don't know why these tests fails
1923 checkPhase = ''
2024 LC_ALL="en_US.UTF-8" pytest \