From patchwork Sun Jan 28 08:25:37 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Troy Figiel X-Patchwork-Id: 59523 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id C61E627BBEC; Sun, 28 Jan 2024 11:09:10 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-3.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,RCVD_IN_MSPIKE_H5,RCVD_IN_MSPIKE_WL, SPF_HELO_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 1E6F327BBE2 for ; Sun, 28 Jan 2024 11:09:10 +0000 (GMT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rU320-0003iR-FB; Sun, 28 Jan 2024 06:08:56 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rU31z-0003i1-6b for guix-patches@gnu.org; Sun, 28 Jan 2024 06:08:55 -0500 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rU31y-0000ww-Uf for guix-patches@gnu.org; Sun, 28 Jan 2024 06:08:54 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rU326-0006Kg-Gr for guix-patches@gnu.org; Sun, 28 Jan 2024 06:09:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#68780] [PATCH 14/19] gnu: Add rust-arrow-json-47. References: <87bk95hgik.fsf@troyfigiel.com> In-Reply-To: <87bk95hgik.fsf@troyfigiel.com> Resent-From: Troy Figiel Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sun, 28 Jan 2024 11:09:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 68780 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 68780@debbugs.gnu.org Received: via spool by 68780-submit@debbugs.gnu.org id=B68780.170644009424215 (code B ref 68780); Sun, 28 Jan 2024 11:09:02 +0000 Received: (at 68780) by debbugs.gnu.org; 28 Jan 2024 11:08:14 +0000 Received: from localhost ([127.0.0.1]:56728 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rU31J-0006IV-FX for submit@debbugs.gnu.org; Sun, 28 Jan 2024 06:08:13 -0500 Received: from mout-p-101.mailbox.org ([2001:67c:2050:0:465::101]:43464) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rU31H-0006IF-RV for 68780@debbugs.gnu.org; Sun, 28 Jan 2024 06:08:12 -0500 Received: from smtp1.mailbox.org (smtp1.mailbox.org [10.196.197.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mout-p-101.mailbox.org (Postfix) with ESMTPS id 4TN7vJ6J8hz9sjp for <68780@debbugs.gnu.org>; Sun, 28 Jan 2024 12:07:56 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=troyfigiel.com; s=MBO0001; t=1706440076; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type; bh=uYgKkuoyq3ilt6pxXyu7k68qOy40sbzAeUFs8oS8LFU=; b=j9pQfcoPLoIRh3QmZzRbcAo8Q35wFIz2JN+SOZwLmm+XRkVgFd5CPaH/Ji3r6jJkTYA20V hgM+6cdZgdwktE6m1KoQl4n5KhWFrwgPMHffPaZP/VpZ/SL5S9qL3xHiRYnxAs+CY6qW2/ qOnYv7VAHy3O74wQUZ4QdnHWV9A06TDDLWGI0iQi9ynbFGaVQX1Ma0rTe1llzk6uoqBVxf YxCq0KKoinbF6YhFu1VyS1B6sVuUOkTaVPtDEapB762vlt49eyiQVg7Lt8rKbOdEGjtlpz gt0CuBLw8bd/phW5Ht9bXaH74YDLZIoNmBh81PKjwEU6WeEzz7o48UGwwEVtNw== From: Troy Figiel Date: Sun, 28 Jan 2024 09:25:37 +0100 Message-ID: <87r0i1g1gz.fsf@troyfigiel.com> MIME-Version: 1.0 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org X-getmail-retrieved-from-mailbox: Patches * gnu/packages/crates-io.scm (rust-arrow-json-47): New variable. --- gnu/packages/crates-io.scm | 67 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 67 insertions(+) diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm index 0029223871..ac857f6934 100644 --- a/gnu/packages/crates-io.scm +++ b/gnu/packages/crates-io.scm @@ -2684,6 +2684,73 @@ (define-public rust-arrow-format-0.3 code of Apache Arrow spec.") (license license:asl2.0))) +(define-public rust-arrow-json-47 + (package + (name "rust-arrow-json") + (version "47.0.0") + (source + (origin + (method url-fetch) + (uri (crate-uri "arrow-json" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 "175ncx809i6gq7i4xr03kxkk3f2nxnd49zjlqg78qs6x0hxpwggh")))) + (build-system cargo-build-system) + (arguments + `(#:cargo-test-flags + ;; Test fixtures are not included in the crate tarball. We need to skip + ;; the tests that require these. + '("--release" + ;; Skip the doctests, since some of these also depend on the test + ;; fixtures. + "--lib" "--bins" "--tests" + "--" + "--exact" + "--skip=reader::schema::tests::test_json_infer_schema" + "--skip=reader::tests::test_date_from_json_milliseconds" + "--skip=reader::tests::test_json_arrays" + "--skip=reader::tests::test_json_basic" + "--skip=reader::tests::test_json_basic_schema" + "--skip=reader::tests::test_json_basic_schema_projection" + "--skip=reader::tests::test_json_basic_with_nulls" + "--skip=reader::tests::test_json_empty_projection" + "--skip=reader::tests::test_json_iterator" + "--skip=reader::tests::test_time_from_json_nanoseconds" + "--skip=reader::tests::test_timestamp_from_json_milliseconds" + "--skip=reader::tests::test_timestamp_from_json_seconds" + "--skip=reader::tests::test_with_multiple_batches" + "--skip=writer::tests::test_write_multi_batches" + "--skip=writer::tests::test_write_single_batch" + "--skip=writer::tests::write_arrays" + "--skip=writer::tests::write_basic_nulls" + "--skip=writer::tests::write_basic_rows") + #:cargo-inputs + (("rust-arrow-array" ,rust-arrow-array-47) + ("rust-arrow-buffer" ,rust-arrow-buffer-47) + ("rust-arrow-cast" ,rust-arrow-cast-47) + ("rust-arrow-data" ,rust-arrow-data-47) + ("rust-arrow-schema" ,rust-arrow-schema-47) + ("rust-chrono" ,rust-chrono-0.4) + ("rust-half" ,rust-half-2) + ("rust-indexmap" ,rust-indexmap-2) + ("rust-lexical-core" ,rust-lexical-core-0.8) + ("rust-num" ,rust-num-0.4) + ("rust-serde" ,rust-serde-1) + ("rust-serde-json" ,rust-serde-json-1)) + #:cargo-development-inputs + (("rust-bytes" ,rust-bytes-1) + ("rust-flate2" ,rust-flate2-1) + ("rust-futures" ,rust-futures-0.3) + ("rust-serde" ,rust-serde-1) + ("rust-tempfile" ,rust-tempfile-3) + ("rust-tokio" ,rust-tokio-1)))) + (home-page "https://github.com/apache/arrow-rs") + (synopsis "Parse JSON formatted data to and from the Arrow format") + (description + "This crate enables support for transferring data between the Arrow +memory format and JSON line-delimited records.") + (license license:asl2.0))) + (define-public rust-arrow-ord-47 (package (name "rust-arrow-ord")