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 <sandro.jaeckel@gmail.com>
This commit is contained in:
parent
9b0eb325ca
commit
56a4ed47d5
|
@ -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
|
||||
'';
|
||||
|
||||
|
|
Loading…
Reference in a new issue