Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 lib, 3 rustPlatform, 4 fetchFromGitHub, 5}: 6 7rustPlatform.buildRustPackage (finalAttrs: { 8 pname = "datafusion-cli"; 9 version = "49.0.0"; 10 11 src = fetchFromGitHub { 12 name = "datafusion-cli-source"; 13 owner = "apache"; 14 repo = "arrow-datafusion"; 15 tag = finalAttrs.version; 16 hash = "sha256-kwFSFatwX0czD6Mmfk9txggptPujkbywkqHkXPIrqo8="; 17 }; 18 19 cargoHash = "sha256-404/AZ/LeXq7/u2Nem/kKyJwXC00srCrHwuvOwGnzUg="; 20 21 buildAndTestSubdir = "datafusion-cli"; 22 23 checkFlags = [ 24 # Some tests not found fake path 25 "--skip=catalog::tests::query_gs_location_test" 26 "--skip=catalog::tests::query_http_location_test" 27 "--skip=catalog::tests::query_s3_location_test" 28 "--skip=exec::tests::copy_to_external_object_store_test" 29 "--skip=exec::tests::copy_to_object_store_table_s3" 30 "--skip=exec::tests::create_object_store_table_cos" 31 "--skip=exec::tests::create_object_store_table_http" 32 "--skip=exec::tests::create_object_store_table_oss" 33 "--skip=exec::tests::create_object_store_table_s3" 34 "--skip=tests::test_parquet_metadata_works_with_strings" 35 ]; 36 37 # timeout 38 doCheck = false; 39 40 meta = { 41 description = "CLI for Apache Arrow DataFusion"; 42 mainProgram = "datafusion-cli"; 43 homepage = "https://arrow.apache.org/datafusion"; 44 changelog = "https://github.com/apache/arrow-datafusion/blob/${finalAttrs.version}/datafusion/CHANGELOG.md"; 45 license = lib.licenses.asl20; 46 maintainers = with lib.maintainers; [ happysalada ]; 47 }; 48})