472aeafc57
GitOrigin-RevId: c31898adf5a8ed202ce5bea9f347b1c6871f32d1
51 lines
1.5 KiB
Nix
51 lines
1.5 KiB
Nix
{
|
|
lib,
|
|
rustPlatform,
|
|
fetchFromGitHub,
|
|
stdenv,
|
|
darwin,
|
|
}:
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
pname = "datafusion-cli";
|
|
version = "42.0.0";
|
|
|
|
src = fetchFromGitHub {
|
|
name = "datafusion-cli-source";
|
|
owner = "apache";
|
|
repo = "arrow-datafusion";
|
|
rev = version;
|
|
sha256 = "sha256-d8DR9I+6ddl5h8WSYBM3UyLUhZe+ICsTfraQkBouMYY=";
|
|
};
|
|
|
|
sourceRoot = "${src.name}/datafusion-cli";
|
|
|
|
cargoHash = "sha256-/ofwZI+v0zoszq5zAQRCyqeVrF/ozS8mHHpPdaklhaE=";
|
|
|
|
buildInputs = lib.optionals stdenv.hostPlatform.isDarwin [
|
|
darwin.apple_sdk.frameworks.Security
|
|
];
|
|
|
|
checkFlags = [
|
|
# Some tests not found fake path
|
|
"--skip=catalog::tests::query_gs_location_test"
|
|
"--skip=catalog::tests::query_http_location_test"
|
|
"--skip=catalog::tests::query_s3_location_test"
|
|
"--skip=exec::tests::copy_to_external_object_store_test"
|
|
"--skip=exec::tests::copy_to_object_store_table_s3"
|
|
"--skip=exec::tests::create_object_store_table_cos"
|
|
"--skip=exec::tests::create_object_store_table_http"
|
|
"--skip=exec::tests::create_object_store_table_oss"
|
|
"--skip=exec::tests::create_object_store_table_s3"
|
|
"--skip=tests::test_parquet_metadata_works_with_strings"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "cli for Apache Arrow DataFusion";
|
|
mainProgram = "datafusion-cli";
|
|
homepage = "https://arrow.apache.org/datafusion";
|
|
changelog = "https://github.com/apache/arrow-datafusion/blob/${version}/datafusion/CHANGELOG.md";
|
|
license = licenses.asl20;
|
|
maintainers = with maintainers; [ happysalada ];
|
|
};
|
|
}
|