From 56a4ed47d562e5ff1d45933208780b1252ee134c Mon Sep 17 00:00:00 2001 From: austinbutler Date: Fri, 13 May 2022 13:11:22 +0000 Subject: [PATCH] pythonPackages.nose-randomly: fix tests on Darwin (#149128) * pythonPackages.nose-randomly: fix tests on Darwin * Update pkgs/development/python-modules/nose-randomly/default.nix Co-authored-by: Sandro --- pkgs/development/python-modules/nose-randomly/default.nix | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/pkgs/development/python-modules/nose-randomly/default.nix b/pkgs/development/python-modules/nose-randomly/default.nix index eb75a375d77..94f64028d66 100644 --- a/pkgs/development/python-modules/nose-randomly/default.nix +++ b/pkgs/development/python-modules/nose-randomly/default.nix @@ -1,4 +1,5 @@ { lib +, stdenv , buildPythonPackage , fetchPypi , nose @@ -16,7 +17,10 @@ buildPythonPackage rec { checkInputs = [ numpy nose ]; - checkPhase = '' + checkPhase = if stdenv.isDarwin then '' + # Work around "OSError: AF_UNIX path too long" + TMPDIR="/tmp" nosetests + '' else '' nosetests '';