1{ lib
2, rustPlatform
3, fetchFromGitHub
4, stdenv
5, darwin
6}:
7
8rustPlatform.buildRustPackage rec {
9 pname = "datafusion-cli";
10 version = "32.0.0";
11
12 src = fetchFromGitHub {
13 name = "datafusion-cli-source";
14 owner = "apache";
15 repo = "arrow-datafusion";
16 rev = version;
17 sha256 = "sha256-QJOv2neEOxLvWoGuS3QyBqGOBi1KJQ8feK6LOrHBL8g=";
18 };
19
20 sourceRoot = "${src.name}/datafusion-cli";
21
22 cargoHash = "sha256-NYdxDFUBOBC3nTZB8STdZfOz3Dw0htFCqE0qBRMzQvw=";
23
24 buildInputs = lib.optionals stdenv.isDarwin [
25 darwin.apple_sdk.frameworks.Security
26 ];
27
28 checkFlags = [
29 # fails even outside the Nix sandbox
30 "--skip=object_storage::tests::s3_region_validation"
31 # broken
32 "--skip=exec::tests::create_object_store_table_gcs"
33 ];
34
35 meta = with lib; {
36 description = "cli for Apache Arrow DataFusion";
37 homepage = "https://arrow.apache.org/datafusion";
38 changelog = "https://github.com/apache/arrow-datafusion/blob/${version}/datafusion/CHANGELOG.md";
39 license = licenses.asl20;
40 maintainers = with maintainers; [ happysalada ];
41 };
42}