Merge #161611: python3Packages.uvloop: fix tests on Darwin

...into staging
main
Vladimír Čunát 2 years ago
commit ab0e692ac7
No known key found for this signature in database
GPG Key ID: E747DF1F9575A3AA
  1. 8
      pkgs/development/python-modules/uvloop/default.nix

@ -62,8 +62,12 @@ buildPythonPackage rec {
"tests/test_sourcecode.py"
];
# force using installed/compiled uvloop vs source by moving tests to temp dir
preCheck = ''
preCheck = lib.optionalString stdenv.isDarwin ''
# Work around "OSError: AF_UNIX path too long"
# https://github.com/MagicStack/uvloop/issues/463
export TMPDIR="/tmp"
'' + ''
# force using installed/compiled uvloop vs source by moving tests to temp dir
export TEST_DIR=$(mktemp -d)
cp -r tests $TEST_DIR
pushd $TEST_DIR

Loading…
Cancel
Save