python3Packages.pyarrow: get tests working with arrow-cpp 9.0.0

This commit is contained in:
Phillip Cloud 2022-08-04 08:37:01 -04:00
parent 56e9e52cc2
commit 829e7c904d
No known key found for this signature in database
GPG Key ID: D908212070FD785E

View File

@ -111,8 +111,10 @@ buildPythonPackage rec {
preCheck = ''
shopt -s extglob
rm -r pyarrow/!(tests)
'' + lib.optionalString stdenv.isDarwin ''
rm -r pyarrow/!(conftest.py|tests)
mv pyarrow/conftest.py pyarrow/tests/parent_conftest.py
substituteInPlace pyarrow/tests/conftest.py --replace ..conftest .parent_conftest
'' + lib.optionalString stdenv.isDarwin ''
# OSError: [Errno 24] Too many open files
ulimit -n 1024
'';