guix-commits
[Top][All Lists]
Advanced

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

126/311: gnu: Add rust-regex-automata-0.4.


From: guix-commits
Subject: 126/311: gnu: Add rust-regex-automata-0.4.
Date: Sat, 28 Oct 2023 16:38:30 -0400 (EDT)

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

commit 3b5ec5fd4040c736c956422526cb127b45575bdd
Author: Efraim Flashner <efraim@flashner.co.il>
AuthorDate: Tue Oct 24 10:00:30 2023 +0300

    gnu: Add rust-regex-automata-0.4.
    
    * gnu/packages/crates-io.scm (rust-regex-automata-0.4): New variable.
    (rust-regex-automata-0.3): Inherit from rust-regex-automata-0.4.
    
    Change-Id: Ic63656f4bfab4a7875a067814f3ca719db649b01
---
 gnu/packages/crates-io.scm | 41 ++++++++++++++++++++++++++++++++++-------
 1 file changed, 34 insertions(+), 7 deletions(-)

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 3ecce89636..f2ef9000b1 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -59469,8 +59469,41 @@ uses finite automata and guarantees linear time 
matching on all inputs.")
         ("rust-quickcheck" ,rust-quickcheck-0.2)
         ("rust-rand" ,rust-rand-0.3))))))
 
+(define-public rust-regex-automata-0.4
+  (package
+    (name "rust-regex-automata")
+    (version "0.4.3")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "regex-automata" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "0gs8q9yhd3kcg4pr00ag4viqxnh5l7jpyb9fsfr8hzh451w4r02z"))))
+    (build-system cargo-build-system)
+    (arguments
+     `(#:tests? #f          ; Not all files included.
+       #:cargo-inputs
+       (("rust-aho-corasick" ,rust-aho-corasick-1)
+        ("rust-log" ,rust-log-0.4)
+        ("rust-memchr" ,rust-memchr-2)
+        ("rust-regex-syntax" ,rust-regex-syntax-0.8))
+       #:cargo-development-inputs
+       (("rust-anyhow" ,rust-anyhow-1)
+        ("rust-bstr" ,rust-bstr-1)
+        ("rust-doc-comment" ,rust-doc-comment-0.3)
+        ("rust-env-logger" ,rust-env-logger-0.9)
+        ("rust-quickcheck" ,rust-quickcheck-1)
+        ("rust-regex-test" ,rust-regex-test-0.1))))
+    (home-page "https://github.com/rust-lang/regex/tree/master/regex-automata";)
+    (synopsis "Automata construction and matching using regular expressions")
+    (description
+     "Automata construction and matching using regular expressions.")
+    (license (list license:expat license:asl2.0))))
+
 (define-public rust-regex-automata-0.3
   (package
+    (inherit rust-regex-automata-0.4)
     (name "rust-regex-automata")
     (version "0.3.3")
     (source (origin
@@ -59480,7 +59513,6 @@ uses finite automata and guarantees linear time 
matching on all inputs.")
               (sha256
                (base32
                 "041kj8fnyh3hv8sqmqq1am6agb1ckjxj6swjfcp8qih7vl84qd9r"))))
-    (build-system cargo-build-system)
     (arguments
      `(#:tests? #f          ; Not all files included.
        #:cargo-inputs
@@ -59494,12 +59526,7 @@ uses finite automata and guarantees linear time 
matching on all inputs.")
         ("rust-doc-comment" ,rust-doc-comment-0.3)
         ("rust-env-logger" ,rust-env-logger-0.9)
         ("rust-quickcheck" ,rust-quickcheck-1)
-        ("rust-regex-test" ,rust-regex-test-0.1))))
-    (home-page "https://github.com/rust-lang/regex/tree/master/regex-automata";)
-    (synopsis "Automata construction and matching using regular expressions")
-    (description
-     "Automata construction and matching using regular expressions.")
-    (license (list license:expat license:asl2.0))))
+        ("rust-regex-test" ,rust-regex-test-0.1))))))
 
 (define-public rust-regex-automata-0.1
   (package



reply via email to

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