python3Packages.uvloop: fix linux build

This commit is contained in:
Konstantin Alekseev 2022-07-09 11:34:39 +03:00
parent 72c9a2a647
commit 8886f79832

View File

@ -68,11 +68,11 @@ buildPythonPackage rec {
# Work around "OSError: AF_UNIX path too long"
# https://github.com/MagicStack/uvloop/issues/463
export TMPDIR="/tmp"
'' + ''
# pyopenssl is not well supported by upstream
# https://github.com/NixOS/nixpkgs/issues/175875
substituteInPlace tests/test_tcp.py \
--replace "from OpenSSL import SSL as openssl_ssl" ""
'' + ''
# force using installed/compiled uvloop vs source by moving tests to temp dir
export TEST_DIR=$(mktemp -d)
cp -r tests $TEST_DIR