Merge pull request #58326 from veprbl/pr/pyarrow_fix_2
pythonPackages.pyarrow: fix build
This commit is contained in:
commit
0eb2c1927e
@ -16,6 +16,7 @@ buildPythonPackage rec {
|
|||||||
checkInputs = [ hypothesis pandas pytest ];
|
checkInputs = [ hypothesis pandas pytest ];
|
||||||
|
|
||||||
PYARROW_BUILD_TYPE = "release";
|
PYARROW_BUILD_TYPE = "release";
|
||||||
|
PYARROW_WITH_PARQUET = true;
|
||||||
PYARROW_CMAKE_OPTIONS = [
|
PYARROW_CMAKE_OPTIONS = [
|
||||||
"-DCMAKE_INSTALL_RPATH=${ARROW_HOME}/lib"
|
"-DCMAKE_INSTALL_RPATH=${ARROW_HOME}/lib"
|
||||||
|
|
||||||
@ -24,6 +25,10 @@ buildPythonPackage rec {
|
|||||||
"-DCMAKE_POLICY_DEFAULT_CMP0025=NEW"
|
"-DCMAKE_POLICY_DEFAULT_CMP0025=NEW"
|
||||||
];
|
];
|
||||||
|
|
||||||
|
preBuild = ''
|
||||||
|
export PYARROW_PARALLEL=$NIX_BUILD_CORES
|
||||||
|
'';
|
||||||
|
|
||||||
preCheck = ''
|
preCheck = ''
|
||||||
rm pyarrow/tests/test_jvm.py
|
rm pyarrow/tests/test_jvm.py
|
||||||
rm pyarrow/tests/test_hdfs.py
|
rm pyarrow/tests/test_hdfs.py
|
||||||
@ -43,13 +48,15 @@ buildPythonPackage rec {
|
|||||||
# when it is not intended to be imported at all
|
# when it is not intended to be imported at all
|
||||||
rm pyarrow/tests/deserialize_buffer.py
|
rm pyarrow/tests/deserialize_buffer.py
|
||||||
substituteInPlace pyarrow/tests/test_feather.py --replace "test_deserialize_buffer_in_different_process" "_disabled"
|
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;
|
ARROW_HOME = _arrow-cpp;
|
||||||
PARQUET_HOME = _arrow-cpp;
|
PARQUET_HOME = _arrow-cpp;
|
||||||
|
|
||||||
setupPyBuildFlags = ["--with-parquet" ];
|
|
||||||
|
|
||||||
checkPhase = ''
|
checkPhase = ''
|
||||||
mv pyarrow/tests tests
|
mv pyarrow/tests tests
|
||||||
rm -rf pyarrow
|
rm -rf pyarrow
|
||||||
|
Loading…
x
Reference in New Issue
Block a user