guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

15/19: gnu: Add rust-arrow-csv-47.


From: guix-commits
Subject: 15/19: gnu: Add rust-arrow-csv-47.
Date: Sun, 11 Feb 2024 08:46:51 -0500 (EST)

efraim pushed a commit to branch rust-team
in repository guix.

commit ff187f8ead856989148ce83c4b27aa532cf0fa51
Author: Troy Figiel <troy@troyfigiel.com>
AuthorDate: Sun Jan 28 09:38:20 2024 +0100

    gnu: Add rust-arrow-csv-47.
    
    * gnu/packages/crates-io.scm (rust-arrow-csv-47): New variable.
    
    Signed-off-by: Efraim Flashner <efraim@flashner.co.il>
---
 gnu/packages/crates-io.scm | 60 ++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 60 insertions(+)

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 9c08d35875..9ea60aa160 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -2636,6 +2636,66 @@ for Apache Arrow, such as prettyprinting, parsing, and 
Base64 encoding and
 decoding.")
     (license license:asl2.0)))
 
+(define-public rust-arrow-csv-47
+  (package
+    (name "rust-arrow-csv")
+    (version "47.0.0")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "arrow-csv" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "1wff8a151xspfrcc4lda6g0d9fa6vva63q23gwcxq9miqrfqbvs3"))))
+    (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::tests::test_buffered"
+         "--skip=reader::tests::test_csv"
+         "--skip=reader::tests::test_csv_builder_with_bounds"
+         "--skip=reader::tests::test_csv_from_buf_reader"
+         "--skip=reader::tests::test_csv_reader_with_decimal"
+         "--skip=reader::tests::test_csv_schema_metadata"
+         "--skip=reader::tests::test_csv_with_dictionary"
+         "--skip=reader::tests::test_csv_with_projection"
+         "--skip=reader::tests::test_csv_with_schema_inference"
+         "--skip=reader::tests::test_csv_with_schema_inference_no_headers"
+         "--skip=reader::tests::test_custom_nulls"
+         "--skip=reader::tests::test_custom_nulls_with_inference"
+         "--skip=reader::tests::test_nulls"
+         "--skip=reader::tests::test_nulls_with_inference"
+         "--skip=reader::tests::test_parse_invalid_csv")
+       #: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-csv" ,rust-csv-1)
+        ("rust-csv-core" ,rust-csv-core-0.1)
+        ("rust-lazy-static" ,rust-lazy-static-1)
+        ("rust-lexical-core" ,rust-lexical-core-0.8)
+        ("rust-regex" ,rust-regex-1))
+       #:cargo-development-inputs
+       (("rust-bytes" ,rust-bytes-1)
+        ("rust-futures" ,rust-futures-0.3)
+        ("rust-tempfile" ,rust-tempfile-3)
+        ("rust-tokio" ,rust-tokio-1))))
+    (home-page "https://github.com/apache/arrow-rs";)
+    (synopsis "Parse CSV formatted data to and from the Arrow format")
+    (description "This crate enables support for transferring data between the
+Arrow memory format and CSV line-delimited records.")
+    (license license:asl2.0)))
+
 (define-public rust-arrow-data-47
   (package
     (name "rust-arrow-data")



reply via email to

[Prev in Thread] Current Thread [Next in Thread]