python3.pkgs.pyarrow: fix build

This commit is contained in:
ran xiao 2023-04-03 21:17:57 +10:00 committed by rxiao
parent 8eb7fcb5dc
commit cebe5de8af

View File

@ -17,6 +17,7 @@
, pytest-lazy-fixture
, pkg-config
, scipy
, fetchpatch
, setuptools-scm
}:
@ -84,6 +85,15 @@ buildPythonPackage rec {
__darwinAllowLocalNetworking = true;
# fix on current master
patches = [
(fetchpatch {
url = "https://github.com/apache/arrow/commit/bce43175aa8cfb4534d3efbcc092f697f25f0f5a.patch";
hash = "sha256-naOAQjQgSKIoCAGCKr7N4dCkOMtweAdfggGOQKDY3k0=";
stripLen = 1;
})
];
preBuild = ''
export PYARROW_PARALLEL=$NIX_BUILD_CORES
'';