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>
main
austinbutler 2 years ago committed by GitHub
parent 9b0eb325ca
commit 56a4ed47d5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 6
      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
'';

Loading…
Cancel
Save