summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules
diff options
context:
space:
mode:
authorDmitry Kalinkin <dmitry.kalinkin@gmail.com>2019-03-26 16:47:40 -0400
committerGitHub <noreply@github.com>2019-03-26 16:47:40 -0400
commit0eb2c1927e07cf1b5d5abb047bba76e99d56a516 (patch)
tree2222a70e9af71e795e79a7507275a10e832e9597 /pkgs/development/python-modules
parent6fc7d8a15e35d05d21fa4b0870b8a4070f84dc71 (diff)
parent2645454bc7ad008cf12ade9eef1fa3d0e1fbf0e8 (diff)
Merge pull request #58326 from veprbl/pr/pyarrow_fix_2
pythonPackages.pyarrow: fix build
Diffstat (limited to 'pkgs/development/python-modules')
-rw-r--r--pkgs/development/python-modules/pyarrow/default.nix11
1 files changed, 9 insertions, 2 deletions
diff --git a/pkgs/development/python-modules/pyarrow/default.nix b/pkgs/development/python-modules/pyarrow/default.nix
index 899b18eecbed..32c5f38b66d0 100644
--- a/pkgs/development/python-modules/pyarrow/default.nix
+++ b/pkgs/development/python-modules/pyarrow/default.nix
@@ -16,6 +16,7 @@ buildPythonPackage rec {
checkInputs = [ hypothesis pandas pytest ];
PYARROW_BUILD_TYPE = "release";
+ PYARROW_WITH_PARQUET = true;
PYARROW_CMAKE_OPTIONS = [
"-DCMAKE_INSTALL_RPATH=${ARROW_HOME}/lib"
@@ -24,6 +25,10 @@ buildPythonPackage rec {
"-DCMAKE_POLICY_DEFAULT_CMP0025=NEW"
];
+ preBuild = ''
+ export PYARROW_PARALLEL=$NIX_BUILD_CORES
+ '';
+
preCheck = ''
rm pyarrow/tests/test_jvm.py
rm pyarrow/tests/test_hdfs.py
@@ -43,13 +48,15 @@ buildPythonPackage rec {
# when it is not intended to be imported at all
rm pyarrow/tests/deserialize_buffer.py
substituteInPlace pyarrow/tests/test_feather.py --replace "test_deserialize_buffer_in_different_process" "_disabled"
+
+ # Fails to bind a socket
+ # "PermissionError: [Errno 1] Operation not permitted"
+ substituteInPlace pyarrow/tests/test_ipc.py --replace "test_socket_" "_disabled"
'';
ARROW_HOME = _arrow-cpp;
PARQUET_HOME = _arrow-cpp;
- setupPyBuildFlags = ["--with-parquet" ];
-
checkPhase = ''
mv pyarrow/tests tests
rm -rf pyarrow