about summary refs log tree commit diff
path: root/pkgs/development/python-modules/docker
diff options
context:
space:
mode:
authorMario Rodas <marsam@users.noreply.github.com>2019-10-25 20:00:00 -0500
committerMario Rodas <marsam@users.noreply.github.com>2019-10-25 20:00:00 -0500
commitad7764c6154134fe0a18bcab7968ce1ffcb49b47 (patch)
tree29875c5aa9ff9f333e2d3651c2a71cd940a7be53 /pkgs/development/python-modules/docker
parent3b43c08dc597dc6acf026c69064b1ea8add23efe (diff)
pythonPackages.docker: fix build on darwin
Diffstat (limited to 'pkgs/development/python-modules/docker')
-rw-r--r--pkgs/development/python-modules/docker/default.nix3
1 files changed, 2 insertions, 1 deletions
diff --git a/pkgs/development/python-modules/docker/default.nix b/pkgs/development/python-modules/docker/default.nix
index 1e5ddc3ed96a5..2e0dd468325e1 100644
--- a/pkgs/development/python-modules/docker/default.nix
+++ b/pkgs/development/python-modules/docker/default.nix
@@ -30,8 +30,9 @@ buildPythonPackage rec {
   ];
 
   # Other tests touch network
+  # Deselect socket tests on Darwin because it hits the path length limit for a Unix domain socket
   checkPhase = ''
-    ${pytest}/bin/pytest tests/unit/
+    ${pytest}/bin/pytest tests/unit/ ${stdenv.lib.optionalString stdenv.isDarwin "--deselect=tests/unit/api_test.py::TCPSocketStreamTest"}
   '';
 
   meta = with stdenv.lib; {