python3Packages.aiohttp: fix tests on Darwin

This commit is contained in:
Austin Butler 2022-02-19 13:39:12 -08:00 committed by Robert Schütz
parent 5fa658968b
commit 7e1f7b8e1f

View file

@ -92,7 +92,10 @@ buildPythonPackage rec {
# Probably because we run `python -m pytest` instead of `pytest` in the hook.
preCheck = ''
cd tests
'';
'' + lib.optionalString stdenv.isDarwin ''
# Work around "OSError: AF_UNIX path too long"
export TMPDIR="/tmp"
'';
meta = with lib; {
description = "Asynchronous HTTP Client/Server for Python and asyncio";