Skip to content

Commit

Permalink
Merge pull request #147718 from cpcloud/pyarrow-enable-extra-modules
Browse files Browse the repository at this point in the history
python3Packages.pyarrow: enable dataset and flight modules
  • Loading branch information
veprbl authored Nov 30, 2021
2 parents 7f8ebc6 + da8dfd5 commit 365b448
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
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 ];
};
}

0 comments on commit 365b448

Please sign in to comment.