Subject: [PATCH v2 42/49] gnu: Add rust-versions-6.

From: Jordan Moore <[email-masked]>
Date: Sat, 30 Nov 2024 11:55:17 -0500

* gnu/packages/crates-io.scm (rust-versions-6): New variable.

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

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 3f874bd9c6..85a520bb6e 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -93403,6 +93403,32 @@ (define-public rust-version-sync-0.6
         ("rust-toml" ,rust-toml-0.4)
         ("rust-url" ,rust-url-1))))))
 
+(define-public rust-versions-6
+  (package
+    (name "rust-versions")
+    (version "6.3.2")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "versions" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "0ff12avdiqhiv6nanikkjl1x3s2y7amkj3r5nivb7zficf5ljpgj"))))
+    (build-system cargo-build-system)
+    (arguments
+     `(#:cargo-inputs (("rust-itertools" ,rust-itertools-0.13)
+                       ("rust-nom" ,rust-nom-7)
+                       ("rust-serde" ,rust-serde-1))
+       #:cargo-development-inputs (("rust-semver" ,rust-semver-1)
+                                   ("rust-semver-parser" ,rust-semver-parser-0.10)
+                                   ("rust-serde-json" ,rust-serde-json-1))))
+    (home-page "https://github.com/fosskers/rs-versions")
+    (synopsis "library for parsing and comparing software version numbers.")
+    (description
+     "This package provides a library for parsing and comparing software version
+numbers.")
+    (license license:expat)))
+
 (define-public rust-vlq-0.5
   (package
     (name "rust-vlq")
-- 
2.46.0