guix-commits
[Top][All Lists]
Advanced

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

148/330: gnu: Add rust-rand-regex-0.15.


From: guix-commits
Subject: 148/330: gnu: Add rust-rand-regex-0.15.
Date: Mon, 18 Mar 2024 07:15:53 -0400 (EDT)

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

commit 4d2966f1c3830f505b2e92fb783d915eb2bd5384
Author: Efraim Flashner <efraim@flashner.co.il>
AuthorDate: Sat Mar 16 21:59:58 2024 +0200

    gnu: Add rust-rand-regex-0.15.
    
    * gnu/packages/crates-io.scm (rust-rand-regex-0.15): New variable.
    
    Change-Id: I1e4b8bdf69ab15cad834e0a4dc8cc20e63df4a66
---
 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 eee55e8c38..354d46d1c2 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -55180,6 +55180,32 @@ generators.")
        #:cargo-development-inputs
        (("rust-bincode" ,rust-bincode-1))))))
 
+(define-public rust-rand-regex-0.15
+  (package
+    (name "rust-rand-regex")
+    (version "0.15.1")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "rand_regex" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "1gfgx78k1sf3y5z7hf3rn8qnplmvlm908y6ig4razvnrszi9yalb"))))
+    (build-system cargo-build-system)
+    (arguments
+     `(#:tests? #f      ; Tests segfault.
+       #:cargo-inputs (("rust-rand" ,rust-rand-0.8)
+                       ("rust-regex-syntax" ,rust-regex-syntax-0.6))
+       #:cargo-development-inputs (("rust-criterion" ,rust-criterion-0.3)
+                                   ("rust-rand" ,rust-rand-0.8)
+                                   ("rust-rand-distr" ,rust-rand-distr-0.4)
+                                   ("rust-rand-xorshift" 
,rust-rand-xorshift-0.3)
+                                   ("rust-regex" ,rust-regex-1))))
+    (home-page "https://github.com/kennytm/rand_regex";)
+    (synopsis "Generates random strings and byte strings matching a regex")
+    (description "Generates random strings and byte strings matching a regex.")
+    (license license:expat)))
+
 (define-public rust-rand-xorshift-0.3
   (package
     (name "rust-rand-xorshift")



reply via email to

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