From b216a37436d1cec0b2695240f0406729c704aa10 Mon Sep 17 00:00:00 2001 From: emaryn Date: Mon, 21 Apr 2025 18:03:04 +0800 Subject: [PATCH] datafusion-cli: 45.0.0 -> 47.0.0 Diff: https://github.com/apache/arrow-datafusion/compare/45.0.0...47.0.0 Changelog: https://github.com/apache/arrow-datafusion/blob/47.0.0/datafusion/CHANGELOG.md --- pkgs/by-name/da/datafusion-cli/package.nix | 31 ++++++++++------------ 1 file changed, 14 insertions(+), 17 deletions(-) diff --git a/pkgs/by-name/da/datafusion-cli/package.nix b/pkgs/by-name/da/datafusion-cli/package.nix index 3b1d7284116f..18d1735c31d9 100644 --- a/pkgs/by-name/da/datafusion-cli/package.nix +++ b/pkgs/by-name/da/datafusion-cli/package.nix @@ -2,30 +2,24 @@ lib, rustPlatform, fetchFromGitHub, - stdenv, - darwin, }: -rustPlatform.buildRustPackage rec { +rustPlatform.buildRustPackage (finalAttrs: { pname = "datafusion-cli"; - version = "45.0.0"; + version = "47.0.0"; src = fetchFromGitHub { name = "datafusion-cli-source"; owner = "apache"; repo = "arrow-datafusion"; - rev = version; - sha256 = "sha256-XIxUp4i68psNtKoFR/uVJHCToz681m2q8qUhtMQKCLo="; + tag = finalAttrs.version; + hash = "sha256-IKG0sLF5LAS2Tch3hdzsGHwAf2k43aVvMo1a29pxza0="; }; - sourceRoot = "${src.name}/datafusion-cli"; - useFetchCargoVendor = true; - cargoHash = "sha256-qJjZ4Um2K27IJy7w99kJGs5ZB1y57xd6P896+Hm2GOg="; + cargoHash = "sha256-kl2+cVQhEkRsQWO8w3WEtXAoVIqj3s3IcbRBn175yxg="; - buildInputs = lib.optionals stdenv.hostPlatform.isDarwin [ - darwin.apple_sdk.frameworks.Security - ]; + buildAndTestSubdir = "datafusion-cli"; checkFlags = [ # Some tests not found fake path @@ -41,12 +35,15 @@ rustPlatform.buildRustPackage rec { "--skip=tests::test_parquet_metadata_works_with_strings" ]; - meta = with lib; { + # timeout + doCheck = false; + + meta = { 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 ]; + changelog = "https://github.com/apache/arrow-datafusion/blob/${finalAttrs.version}/datafusion/CHANGELOG.md"; + license = lib.licenses.asl20; + maintainers = with lib.maintainers; [ happysalada ]; }; -} +})