guix-commits
[Top][All Lists]
Advanced

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

121/134: gnu: Add rust-uom-0.36.


From: guix-commits
Subject: 121/134: gnu: Add rust-uom-0.36.
Date: Tue, 3 Dec 2024 10:04:44 -0500 (EST)

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

commit 238ffdfdbe7a338c9e8e1cff23ccacb6fadf9b67
Author: Jordan Moore <lockbox@struct.foo>
AuthorDate: Mon Dec 2 22:00:41 2024 -0500

    gnu: Add rust-uom-0.36.
    
    * gnu/packages/crates-io.scm (rust-uom-0.36): New variable.
    (rust-uom-0.34): Inherit from rust-uom-0.36.
    
    Signed-off-by: Efraim Flashner <efraim@flashner.co.il>
    Change-Id: Idbc3c4afac37bfa114e7c39259c4e727e2c5ad05
---
 gnu/packages/crates-io.scm | 48 ++++++++++++++++++++++++++++++++++------------
 1 file changed, 36 insertions(+), 12 deletions(-)

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index ff8c1df1f8..1e009e952d 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -92290,8 +92290,43 @@ untrusted inputs in Rust.")
        (sha256
         (base32 "0byf88b7ca1kb5aap8f6npp6xncvg95dnma8ipmnmd4n9r5izkam"))))))
 
+(define-public rust-uom-0.36
+  (package
+    (name "rust-uom")
+    (version "0.36.0")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "uom" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "176dszv02ki1a49hvv2nkszjcn4m8ccfjgh5hhji2pd6a19nxlzz"))))
+    (build-system cargo-build-system)
+    (arguments
+     `(#:cargo-inputs (("rust-num-bigint" ,rust-num-bigint-0.4)
+                       ("rust-num-complex" ,rust-num-complex-0.4)
+                       ("rust-num-rational" ,rust-num-rational-0.4)
+                       ("rust-num-traits" ,rust-num-traits-0.2)
+                       ("rust-serde" ,rust-serde-1)
+                       ("rust-typenum" ,rust-typenum-1))
+       #:cargo-development-inputs (("rust-approx" ,rust-approx-0.5)
+                                   ("rust-quickcheck" ,rust-quickcheck-1)
+                                   ("rust-serde-json" ,rust-serde-json-1)
+                                   ("rust-static-assertions" 
,rust-static-assertions-1))))
+    (home-page "https://github.com/iliekturtles/uom";)
+    (synopsis "Units of measurement")
+    (description
+     "@code{uom} (Units of measurement) is a crate that does automatic 
type-safe
+zero-cost dimensional analysis.  You can create your own systems or use the 
pre-built
+International System of Units (SI) which is based on the International System 
of
+Quantities (ISQ) and includes numerous quantities (length, mass, time, ...) 
with
+conversion factors for even more numerous measurement units (meter, kilometer, 
foot,
+mile, ...).")
+    (license (list license:asl2.0 license:expat))))
+
 (define-public rust-uom-0.34
   (package
+    (inherit rust-uom-0.36)
     (name "rust-uom")
     (version "0.34.0")
     (source (origin
@@ -92301,7 +92336,6 @@ untrusted inputs in Rust.")
               (sha256
                (base32
                 "190n79b5ywa9w0j13ld0q6dphz7vzsjkwrpp8pjnwrczsvfhxxg8"))))
-    (build-system cargo-build-system)
     (arguments
      `(#:cargo-inputs (("rust-num-complex" ,rust-num-complex-0.4)
                        ("rust-num-rational" ,rust-num-rational-0.4)
@@ -92312,17 +92346,7 @@ untrusted inputs in Rust.")
        #:cargo-development-inputs (("rust-approx" ,rust-approx-0.5)
                                    ("rust-quickcheck" ,rust-quickcheck-0.8)
                                    ("rust-serde-json" ,rust-serde-json-1)
-                                   ("rust-static-assertions" 
,rust-static-assertions-1))))
-    (home-page "https://github.com/iliekturtles/uom";)
-    (synopsis "Units of measurement")
-    (description
-     "@code{uom} (Units of measurement) is a crate that does automatic 
type-safe
-zero-cost dimensional analysis.  You can create your own systems or use the 
pre-built
-International System of Units (SI) which is based on the International System 
of
-Quantities (ISQ) and includes numerous quantities (length, mass, time, ...) 
with
-conversion factors for even more numerous measurement units (meter, kilometer, 
foot,
-mile, ...).")
-    (license (list license:expat license:asl2.0))))
+                                   ("rust-static-assertions" 
,rust-static-assertions-1))))))
 
 (define-public rust-uom-0.30
   (package



reply via email to

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