Subject: [bug#71076] [PATCH 05/81] gnu: Add rust-simple-asn1-0.6.

From: Herman Rimm <[email-masked]>
Date: Mon, 20 May 2024 10:58:10 +0200

* gnu/packages/crates-crypto.scm (rust-simple-asn1-0.6): Add variable.
(rust-simple-asn1-0.4): Inherit from rust-simple-asn1-0.6.

Change-Id: I3d233008144aee8c39cf25914746c10b7b67fd2e
---
 gnu/packages/crates-crypto.scm | 33 ++++++++++++++++++++++++++-------
 1 file changed, 26 insertions(+), 7 deletions(-)

diff --git a/gnu/packages/crates-crypto.scm b/gnu/packages/crates-crypto.scm
index 879879d09d..39f4214905 100644
--- a/gnu/packages/crates-crypto.scm
+++ b/gnu/packages/crates-crypto.scm
@@ -6063,8 +6063,33 @@ (define-public rust-signature-derive-1
         ("rust-syn" ,rust-syn-1)
         ("rust-synstructure" ,rust-synstructure-0.12))))))
 
+(define-public rust-simple-asn1-0.6
+  (package
+    (name "rust-simple-asn1")
+    (version "0.6.2")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "simple_asn1" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "11d0l3l7lppzr1wxhvsbmjmw6s2vy3v7b8ygz500z4di9qhfbi5d"))))
+    (build-system cargo-build-system)
+    (arguments
+     (list
+      #:cargo-inputs (list rust-num-bigint-0.4 rust-num-traits-0.2
+                           rust-thiserror-1 rust-time-0.3)
+      #:cargo-development-inputs (list rust-quickcheck-1 rust-rand-0.8
+                                       rust-time-0.3)))
+    (home-page "https://github.com/acw/simple_asn1")
+    (synopsis "simple DER/ASN.1 encoding/decoding library.")
+    (description
+     "This package provides a simple DER/ASN.1 encoding/decoding library.")
+    (license license:isc)))
+
 (define-public rust-simple-asn1-0.4
   (package
+    (inherit rust-simple-asn1-0.6)
     (name "rust-simple-asn1")
     (version "0.4.1")
     (source
@@ -6074,18 +6099,12 @@ (define-public rust-simple-asn1-0.4
        (file-name (string-append name "-" version ".tar.gz"))
        (sha256
         (base32 "0jxy9as8nj65c2n27j843g4fpb95x4fjz31w6qx63q3wwlys2b39"))))
-    (build-system cargo-build-system)
     (arguments
      `(#:cargo-inputs (("rust-chrono" ,rust-chrono-0.4)
                        ("rust-num-bigint" ,rust-num-bigint-0.2)
                        ("rust-num-traits" ,rust-num-traits-0.2))
        #:cargo-development-inputs (("rust-quickcheck" ,rust-quickcheck-0.7)
-                                   ("rust-rand" ,rust-rand-0.5))))
-    (home-page "https://github.com/acw/simple_asn1")
-    (synopsis "Simple DER/ASN.1 encoding/decoding library")
-    (description
-     "This package provides a simple DER/ASN.1 encoding/decoding library.")
-    (license license:isc)))
+                                   ("rust-rand" ,rust-rand-0.5))))))
 
 (define-public rust-sm3-0.4
   (package
-- 
2.41.0