Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

python3Packages.pyarrow: enable dataset and flight modules #147718

Merged
merged 2 commits into from
Nov 30, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions pkgs/development/libraries/arrow-cpp/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -238,4 +238,7 @@ stdenv.mkDerivation rec {
platforms = platforms.unix;
maintainers = with maintainers; [ tobim veprbl cpcloud ];
};
passthru = {
inherit enableFlight enableJemalloc enableS3 enableGcs;
};
}
10 changes: 9 additions & 1 deletion pkgs/development/python-modules/pyarrow/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -17,17 +17,25 @@ buildPythonPackage rec {
checkInputs = [ hypothesis pandas pytestCheckHook pytest-lazy-fixture ];

PYARROW_BUILD_TYPE = "release";

PYARROW_WITH_DATASET = true;
PYARROW_WITH_FLIGHT = _arrow-cpp.enableFlight;
PYARROW_WITH_PARQUET = true;

PYARROW_CMAKE_OPTIONS = [
"-DCMAKE_INSTALL_RPATH=${ARROW_HOME}/lib"

# This doesn't use setup hook to call cmake so we need to workaround #54606
# ourselves
"-DCMAKE_POLICY_DEFAULT_CMP0025=NEW"
];

ARROW_HOME = _arrow-cpp;
PARQUET_HOME = _arrow-cpp;

ARROW_TEST_DATA = lib.optionalString doCheck _arrow-cpp.ARROW_TEST_DATA;

doCheck = true;
dontUseCmakeConfigure = true;

preBuild = ''
Expand Down Expand Up @@ -62,6 +70,6 @@ buildPythonPackage rec {
homepage = "https://arrow.apache.org/";
license = licenses.asl20;
platforms = platforms.unix;
maintainers = with maintainers; [ veprbl ];
maintainers = with maintainers; [ veprbl cpcloud ];
};
}