git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #147718 from cpcloud/pyarrow-enable-extra-modules

python3Packages.pyarrow: enable dataset and flight modules

commit365b448d0e97443f5d42c830b3d532db7bb81fb4 authorDmitry Kalinkin <dmitry.kalinkin@gmail.com> dateTue 30 Nov 2021, 10:02 (5 years ago) parent7f8ebc6da8dfd5
2 files changed+12−1
pkgs/development/libraries/arrow-cpp/default.nix+3 pkgs/development/python-modules/pyarrow/default.nix+9−1
pkgs/development/libraries/arrow-cpp/default.nix+3
@@ -238,4 +238,7 @@ stdenv.mkDerivation rec {
238238 platforms = platforms.unix;
239239 maintainers = with maintainers; [ tobim veprbl cpcloud ];
240240 };
241+ passthru = {
242+ inherit enableFlight enableJemalloc enableS3 enableGcs;
243+ };
241244}
pkgs/development/python-modules/pyarrow/default.nix+9−1
@@ -17,7 +17,11 @@ buildPythonPackage rec {
1717 checkInputs = [ hypothesis pandas pytestCheckHook pytest-lazy-fixture ];
1818
1919 PYARROW_BUILD_TYPE = "release";
20+
21+ PYARROW_WITH_DATASET = true;
22+ PYARROW_WITH_FLIGHT = _arrow-cpp.enableFlight;
2023 PYARROW_WITH_PARQUET = true;
24+
2125 PYARROW_CMAKE_OPTIONS = [
2226 "-DCMAKE_INSTALL_RPATH=${ARROW_HOME}/lib"
2327
@@ -25,9 +29,13 @@ buildPythonPackage rec {
2529 # ourselves
2630 "-DCMAKE_POLICY_DEFAULT_CMP0025=NEW"
2731 ];
32+
2833 ARROW_HOME = _arrow-cpp;
2934 PARQUET_HOME = _arrow-cpp;
3035
36+ ARROW_TEST_DATA = lib.optionalString doCheck _arrow-cpp.ARROW_TEST_DATA;
37+
38+ doCheck = true;
3139 dontUseCmakeConfigure = true;
3240
3341 preBuild = ''
@@ -62,6 +70,6 @@ buildPythonPackage rec {
6270 homepage = "https://arrow.apache.org/";
6371 license = licenses.asl20;
6472 platforms = platforms.unix;
65− maintainers = with maintainers; [ veprbl ];
73+ maintainers = with maintainers; [ veprbl cpcloud ];
6674 };
6775}