nixpkgs/pkgs/by-name/da/datafusion-cli/package.nix
aleksana 571c71e6f7 treewide: migrate packages to pkgs/by-name, take 1
We are migrating packages that meet below requirements:

1. using `callPackage`
2. called path is a directory
3. overriding set is empty (`{ }`)
4. not containing path expressions other than relative path (to
makenixpkgs-vet happy)
5. not referenced by nix files outside of the directory, other
than`pkgs/top-level/all-packages.nix`
6. not referencing nix files outside of the directory
7. not referencing `default.nix` (since it's changed to `package.nix`)
8. `outPath` doesn't change after migration

The tool is here: https://github.com/Aleksanaa/by-name-migrate.
2024-11-09 20:04:51 +08:00

52 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 ];
};
}