Merge pull request #175628 from knl/pyarrow-on-darwin-enable

Fix: make pyarrow buildable on darwin
This commit is contained in:
Robert Scott 2022-05-31 22:18:20 +01:00 committed by GitHub
commit 2ab46138fb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -83,12 +83,19 @@ buildPythonPackage rec {
] ++ lib.optionals stdenv.isDarwin [
# Requires loopback networking
"--deselect=pyarrow/tests/test_ipc.py::test_socket_"
"--deselect=pyarrow/tests/test_flight.py::test_never_sends_data"
"--deselect=pyarrow/tests/test_flight.py::test_large_descriptor"
"--deselect=pyarrow/tests/test_flight.py::test_large_metadata_client"
"--deselect=pyarrow/tests/test_flight.py::test_none_action_side_effect"
];
dontUseSetuptoolsCheck = true;
preCheck = ''
shopt -s extglob
rm -r pyarrow/!(tests)
'' + lib.optionalString stdenv.isDarwin ''
# OSError: [Errno 24] Too many open files
ulimit -n 1024
'';
pythonImportsCheck = [ "pyarrow" ] ++ map (module: "pyarrow.${module}") ([
@ -104,7 +111,6 @@ buildPythonPackage rec {
] ++ lib.optionals (!stdenv.isDarwin) [ "plasma" ]);
meta = with lib; {
broken = stdenv.isDarwin;
description = "A cross-language development platform for in-memory data";
homepage = "https://arrow.apache.org/";
license = licenses.asl20;