Subject: [bug#68780] [PATCH 19/19] gnu: Add rust-arrow-47.

From: Troy Figiel <[email-masked]>
Date: Sun, 28 Jan 2024 10:14:08 +0100

* gnu/packages/crates-io.scm (rust-arrow-47): New variable.
---
 gnu/packages/crates-io.scm | 48 ++++++++++++++++++++++++++++++++++++++
 1 file changed, 48 insertions(+)

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 1df762dff8..db23a2d7b0 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -2496,6 +2496,54 @@ (define-public rust-arrayvec-0.4
         ("rust-matches" ,rust-matches-0.1)
         ("rust-serde-test" ,rust-serde-test-1))))))
 
+(define-public rust-arrow-47
+  (package
+    (name "rust-arrow")
+    (version "47.0.0")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "arrow" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "0agq8c2q8nifsysnri8svh9m9dqkk55ww3d3slvqms4cpa9rxavz"))))
+    (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" "--" "--exact"
+         "--skip=util::test_util::tests::test_happy")
+       #:cargo-inputs
+       (("rust-ahash" ,rust-ahash-0.8)
+        ("rust-arrow-arith" ,rust-arrow-arith-47)
+        ("rust-arrow-array" ,rust-arrow-array-47)
+        ("rust-arrow-buffer" ,rust-arrow-buffer-47)
+        ("rust-arrow-cast" ,rust-arrow-cast-47)
+        ("rust-arrow-csv" ,rust-arrow-csv-47)
+        ("rust-arrow-data" ,rust-arrow-data-47)
+        ("rust-arrow-ipc" ,rust-arrow-ipc-47)
+        ("rust-arrow-json" ,rust-arrow-json-47)
+        ("rust-arrow-ord" ,rust-arrow-ord-47)
+        ("rust-arrow-row" ,rust-arrow-row-47)
+        ("rust-arrow-schema" ,rust-arrow-schema-47)
+        ("rust-arrow-select" ,rust-arrow-select-47)
+        ("rust-arrow-string" ,rust-arrow-string-47)
+        ("rust-pyo3" ,rust-pyo3-0.19)
+        ("rust-rand" ,rust-rand-0.8))
+       #:cargo-development-inputs
+       (("rust-chrono" ,rust-chrono-0.4)
+        ("rust-criterion" ,rust-criterion-0.5)
+        ("rust-half" ,rust-half-2)
+        ("rust-rand" ,rust-rand-0.8)
+        ("rust-serde" ,rust-serde-1)
+        ("rust-tempfile" ,rust-tempfile-3))))
+    (home-page "https://github.com/apache/arrow-rs")
+    (synopsis "Rust implementation of Apache Arrow")
+    (description "This crate provides a complete, safe and native Rust
+implementation of Apache Arrow.")
+    (license license:asl2.0)))
+
 (define-public rust-arrow-5
   (package
     (name "rust-arrow")
-- 
2.42.0