From f0e0734f6132276a9fa8ccaef97b5e2cec8b30bb Mon Sep 17 00:00:00 2001 From: Nikola Knezevic Date: Tue, 31 May 2022 20:22:03 +0200 Subject: [PATCH] Fix: make pyarrow buildable on darwin This change disables several tests that fail on darwin due to requiring localhost networking. In addition, it bumps up the number of open file descriptors to allow test_pandas.py/TestConvertMisc tests to pass. --- pkgs/development/python-modules/pyarrow/default.nix | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/pkgs/development/python-modules/pyarrow/default.nix b/pkgs/development/python-modules/pyarrow/default.nix index 476a68564366..85d89424c839 100644 --- a/pkgs/development/python-modules/pyarrow/default.nix +++ b/pkgs/development/python-modules/pyarrow/default.nix @@ -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;