Skip to content

Commit f149c70

Browse files
committed
arrow-cpp: 0.16.0 -> 0.17.0
1 parent cfe68f2 commit f149c70

3 files changed

Lines changed: 18 additions & 30 deletions

File tree

pkgs/development/libraries/arrow-cpp/default.nix

Lines changed: 14 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,24 @@
11
{ stdenv, lib, fetchurl, fetchFromGitHub, fetchpatch, fixDarwinDylibNames, autoconf, boost
22
, brotli, cmake, flatbuffers, gflags, glog, gtest, lz4, perl
3-
, python, rapidjson, snappy, thrift, which, zlib, zstd
3+
, python3, rapidjson, snappy, thrift, which, zlib, zstd
44
, enableShared ? true }:
55

66
let
77
parquet-testing = fetchFromGitHub {
88
owner = "apache";
99
repo = "parquet-testing";
10-
rev = "46c9e977f58f6c5ef1b81f782f3746b3656e5a8c";
11-
sha256 = "1z2s6zh58nf484s0yraw7b1aqgx66dn2wzp1bzv9ndq03msklwly";
10+
rev = "bcd9ebcf9204a346df47204fe21b85c8d0498816";
11+
sha256 = "0m16pqzbvxiaradq088q5ai6fwnz9srbap996397znwppvva479b";
1212
};
1313

1414
in stdenv.mkDerivation rec {
1515
pname = "arrow-cpp";
16-
version = "0.16.0";
16+
version = "0.17.0";
1717

1818
src = fetchurl {
1919
url =
2020
"mirror://apache/arrow/arrow-${version}/apache-arrow-${version}.tar.gz";
21-
sha256 = "1xdp1yni9i1cpml326s78qql1g832m800h7zjlqmk89983g94696";
21+
sha256 = "0vcfprf176jlmw6wsy6vyc49fiffyjk37rhl098sv2pqw71v8iic";
2222
};
2323

2424
sourceRoot = "apache-arrow-${version}/cpp";
@@ -28,19 +28,18 @@ in stdenv.mkDerivation rec {
2828
# ./cpp/cmake_modules/ThirdpartyToolchain.cmake
2929
# ./cpp/thirdparty/versions.txt
3030
url =
31-
"https://github.com/jemalloc/jemalloc/releases/download/5.2.0/jemalloc-5.2.0.tar.bz2";
32-
sha256 = "1d73a5c5qdrwck0fa5pxz0myizaf3s9alsvhiqwrjahdlr29zgkl";
31+
"https://github.com/jemalloc/jemalloc/releases/download/5.2.1/jemalloc-5.2.1.tar.bz2";
32+
sha256 = "1xl7z0vwbn5iycg7amka9jd6hxd8nmfk7nahi4p9w2bnw9f0wcrl";
3333
};
3434

3535
patches = [
3636
# patch to fix python-test
3737
./darwin.patch
38-
# Adjust CMake target names to make -DCMAKE_FIND_PACKAGE_PREFER_CONFIG=ON work.
39-
# Remove this when updating to the next version.
38+
39+
# fix musl build
4040
(fetchpatch {
41-
name = "arrow-use-upstream-cmake-target-names.patch";
42-
url = "https://github.com/apache/arrow/commit/396861b38d2f4e805db7c2ecd2c96fff0ca2678b.patch";
43-
sha256 = "0ki7nx858374anvwyi4szz5hgnnzv4fghdd05c38bzry9rfljgb1";
41+
url = "https://github.com/apache/arrow/commit/de4168786dfd8ab932f48801e0a7a6b8a370c19d.diff";
42+
sha256 = "1nl4y1rwdl0gn67v7l05ibc4lwkn6x7fhwbmslmm08cqmwfjsx3y";
4443
stripLen = 1;
4544
})
4645
] ++ lib.optionals (!enableShared) [
@@ -66,8 +65,9 @@ in stdenv.mkDerivation rec {
6665
thrift
6766
zlib
6867
zstd
69-
python.pkgs.python
70-
python.pkgs.numpy
68+
] ++ lib.optionals enableShared [
69+
python3.pkgs.python
70+
python3.pkgs.numpy
7171
];
7272

7373
preConfigure = ''
@@ -92,8 +92,6 @@ in stdenv.mkDerivation rec {
9292
# Parquet options:
9393
"-DARROW_PARQUET=ON"
9494
"-DPARQUET_BUILD_EXECUTABLES=ON"
95-
"-DTHRIFT_COMPILER=${thrift}/bin/thrift"
96-
"-DTHRIFT_VERSION=${thrift.version}"
9795
] ++ lib.optionals (!enableShared) [
9896
"-DARROW_BUILD_SHARED=OFF"
9997
"-DARROW_BOOST_USE_SHARED=OFF"

pkgs/development/python-modules/pyarrow/default.nix

Lines changed: 4 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,19 @@
1-
{ lib, fetchpatch, buildPythonPackage, python, isPy3k, arrow-cpp, cmake, cython, futures, hypothesis, numpy, pandas, pytestCheckHook, pytest-lazy-fixture, pkgconfig, setuptools_scm, six }:
1+
{ lib, buildPythonPackage, python, isPy3k, arrow-cpp, cmake, cython, futures, hypothesis, numpy, pandas, pytestCheckHook, pytest-lazy-fixture, pkgconfig, setuptools_scm, six }:
22

33
let
4-
_arrow-cpp = arrow-cpp.override { inherit python; };
4+
_arrow-cpp = arrow-cpp.override { python3 = python; };
55
in
66

77
buildPythonPackage rec {
88
pname = "pyarrow";
9+
disabled = !isPy3k;
910

1011
inherit (_arrow-cpp) version src;
1112

12-
patches = [
13-
# Remove when updating pkgs.arrow-cpp to 0.17
14-
(fetchpatch {
15-
name = "ARROW-8106-fix-conversion-test";
16-
url = "https://github.com/apache/arrow/commit/af20bbff30adc560d7e57dd921345d00cc8b870c.patch";
17-
sha256 = "0ihpw589vh35va31ajzy5zpx3bqd9gdn3342rghi03r245kch9zd";
18-
stripLen = 1;
19-
})
20-
];
21-
2213
sourceRoot = "apache-arrow-${version}/python";
2314

2415
nativeBuildInputs = [ cmake cython pkgconfig setuptools_scm ];
25-
propagatedBuildInputs = [ numpy six ] ++ lib.optionals (!isPy3k) [ futures ];
16+
propagatedBuildInputs = [ numpy six ];
2617
checkInputs = [ hypothesis pandas pytestCheckHook pytest-lazy-fixture ];
2718

2819
PYARROW_BUILD_TYPE = "release";

pkgs/top-level/static.nix

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,6 @@ in {
166166
});
167167
arrow-cpp = super.arrow-cpp.override {
168168
enableShared = false;
169-
python = { pkgs = { python = null; numpy = null; }; };
170169
};
171170
boost = super.boost.override {
172171
enableStatic = true;

0 commit comments

Comments
 (0)