guix-commits
[Top][All Lists]
Advanced

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

117/330: gnu: Add rust-polars-0.37.


From: guix-commits
Subject: 117/330: gnu: Add rust-polars-0.37.
Date: Mon, 18 Mar 2024 07:15:39 -0400 (EDT)

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

commit dd1bdb83cb057d2454f31c116f7fa1ce4287e130
Author: Efraim Flashner <efraim@flashner.co.il>
AuthorDate: Sat Mar 16 21:48:31 2024 +0200

    gnu: Add rust-polars-0.37.
    
    * gnu/packages/crates-io.scm (rust-polars-0.37): New variable.
    (rust-polars-0.17): Inherit from rust-polars-0.37.
    
    Change-Id: Ibd9371383eeed796d28e72f49a9208f7a4537722
---
 gnu/packages/crates-io.scm | 42 +++++++++++++++++++++++++++++++++++-------
 1 file changed, 35 insertions(+), 7 deletions(-)

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 78ab832e27..4254b06036 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -49393,8 +49393,42 @@ both WASM and native applications")
 applications.")
     (license license:expat)))
 
+(define-public rust-polars-0.37
+  (package
+    (name "rust-polars")
+    (version "0.37.0")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "polars" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "0bv5w5abfqy5hmiblq6j4477d0wyfqbslz128lfqbjqhj329adz4"))))
+    (build-system cargo-build-system)
+    (arguments
+     `(#:cargo-test-flags '("--release" "--lib" "--bins" "--tests" "--"
+                            "--skip=io::csv::test_projection"
+                            "--skip=io::csv::test_read_csv_file"
+                            "--skip=io::csv::test_with_row_index")
+       #:cargo-inputs (("rust-getrandom" ,rust-getrandom-0.2)
+                       ("rust-polars-core" ,rust-polars-core-0.37)
+                       ("rust-polars-io" ,rust-polars-io-0.37)
+                       ("rust-polars-lazy" ,rust-polars-lazy-0.37)
+                       ("rust-polars-ops" ,rust-polars-ops-0.37)
+                       ("rust-polars-plan" ,rust-polars-plan-0.37)
+                       ("rust-polars-sql" ,rust-polars-sql-0.37)
+                       ("rust-polars-time" ,rust-polars-time-0.37)
+                       ("rust-version-check" ,rust-version-check-0.9))
+       #:cargo-development-inputs (("rust-ahash" ,rust-ahash-0.8)
+                                   ("rust-rand" ,rust-rand-0.8))))
+    (home-page "https://www.pola.rs/";)
+    (synopsis "DataFrame library based on Apache Arrow")
+    (description "Polars is a @code{DataFrame} library based on Apache Arrow.")
+    (license license:expat)))
+
 (define-public rust-polars-0.17
   (package
+    (inherit rust-polars-0.37)
     (name "rust-polars")
     (version "0.17.0")
     (source
@@ -49404,18 +49438,12 @@ applications.")
        (file-name (string-append name "-" version ".tar.gz"))
        (sha256
         (base32 "1655qd1khas4qm14k3hl3sh8zh2xaj505344qzm68fz98rfs553w"))))
-    (build-system cargo-build-system)
     (arguments
      `(#:skip-build? #t
        #:cargo-inputs
        (("rust-polars-core" ,rust-polars-core-0.17)
         ("rust-polars-io" ,rust-polars-io-0.17)
-        ("rust-polars-lazy" ,rust-polars-lazy-0.17))))
-    (home-page "https://github.com/ritchie46/polars";)
-    (synopsis "DataFrame Library based on Apache Arrow")
-    (description
-     "Polars is a dataframe Library based on Apache Arrow.")
-    (license license:expat)))
+        ("rust-polars-lazy" ,rust-polars-lazy-0.17))))))
 
 (define-public rust-polars-arrow-0.17
   (package



reply via email to

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