Subject: [PATCH 40/55] gnu: Add rust-alga-0.7.

From: Jaeme Sifat <[email-masked]>
Date: Tue, 19 Dec 2023 22:55:02 -0500

* gnu/packages/crates-io.scm (rust-alga-0.7): New variable.

Change-Id: I226c659255f74c9d61666a242736d70eb0ff5445
---
 gnu/packages/crates-io.scm | 25 +++++++++++++++++++++++++
 1 file changed, 25 insertions(+)

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 1b69707a66..4efa202206 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -3000,6 +3000,31 @@ (define-public rust-alga-0.9
 code that is generic with regard to the algebraic entity types.")
     (license license:asl2.0)))
 
+(define-public rust-alga-0.7
+  (package
+    (inherit rust-alga-0.9)
+    (name "rust-alga")
+    (version "0.7.2")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "alga" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "0y2p2n5i61a7qf7l49xy8vj0qcaj3lkjz33vfin9iwjrrbp01fr4"))))
+    (arguments
+     `(#:cargo-test-flags
+       '("--release" "--lib" "--bins" "--tests")
+       #:cargo-inputs
+       (("rust-approx" ,rust-approx-0.3)
+        ("rust-decimal" ,rust-decimal-2)
+        ("rust-libm" ,rust-libm-0.1)
+        ("rust-num-complex" ,rust-num-complex-0.2)
+        ("rust-num-traits" ,rust-num-traits-0.2))
+       #:cargo-development-inputs
+       (("rust-alga-derive" ,rust-alga-derive-0.7)
+        ("rust-quickcheck" ,rust-quickcheck-0.7))))))
+
 (define-public rust-alga-derive-0.9
   (package
     (name "rust-alga-derive")
-- 
2.41.0