Subject: [bug#75677] [PATCH rust-team 63/89] gnu: rust-fraction-0.15: New variable.

From: Aaron Covrig <[email-masked]>
Date: Sun, 19 Jan 2025 17:49:37 -0500

* gnu/packages/crates-io.scm (rust-fraction-0.15): New variable.
---
 gnu/packages/crates-io.scm | 31 +++++++++++++++++++++++++++++++
 1 file changed, 31 insertions(+)

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 8e372b538b..14c0dc92d4 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -27393,6 +27393,37 @@ (define-public rust-form-urlencoded-1
 syntax, as used by HTML forms.")
     (license (list license:expat license:asl2.0))))
 
+(define-public rust-fraction-0.15
+  (package
+    (name "rust-fraction")
+    (version "0.15.3")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "fraction" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "1rss1021dpzr12xl3dyqyj36ji4vv4f83yy9im039cx1y0zqw58g"))))
+    (build-system cargo-build-system)
+    (arguments
+     `(#:cargo-test-flags '("--"
+                            ;; Broken tests
+                            "--skip=src/lib.rs - (line 161)")
+       #:cargo-inputs (("rust-num" ,rust-num-0.4)
+                       ("rust-byteorder" ,rust-byteorder-1)
+                       ("rust-bytes" ,rust-bytes-1)
+                       ("rust-juniper" ,rust-juniper-0.15)
+                       ("rust-lazy-static" ,rust-lazy-static-1)
+                       ("rust-postgres-types" ,rust-postgres-types-0.2)
+                       ("rust-serde" ,rust-serde-1)
+                       ("rust-serde-derive" ,rust-serde-derive-1))
+       #:cargo-development-inputs (("rust-criterion" ,rust-criterion-0.4)
+                                   ("rust-rand" ,rust-rand-0.8))))
+    (home-page "https://github.com/dnsl48/fraction")
+    (synopsis "Lossless fractions and decimals; drop-in float replacement")
+    (description "Lossless fractions and decimals; drop-in float replacement.")
+    (license (list license:asl2.0 license:expat))))
+
 (define-public rust-fragile-2
   (package
     (name "rust-fragile")
-- 
2.47.1