guix-commits
[Top][All Lists]
Advanced

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

124/276: gnu: Add rust-convert-case-0.6.


From: guix-commits
Subject: 124/276: gnu: Add rust-convert-case-0.6.
Date: Wed, 18 Oct 2023 04:49:42 -0400 (EDT)

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

commit f362a832985e8823b7474a96352f7ad6937977ce
Author: Efraim Flashner <efraim@flashner.co.il>
AuthorDate: Tue Oct 3 09:50:52 2023 +0300

    gnu: Add rust-convert-case-0.6.
    
    * gnu/packages/crates-io.scm (rust-convert-case-0.6): New variable.
    (rust-convert-case-0.4): Inherit from rust-convert-case-0.6.
---
 gnu/packages/crates-io.scm | 40 +++++++++++++++++++++++++++++++++++-----
 1 file changed, 35 insertions(+), 5 deletions(-)

diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index 3bd5b386ab..59e113054e 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -14812,27 +14812,57 @@ to guess the type of content.")
 semantics than those provided by @code{as} or @code{From}/@code{Into}.")
     (license license:expat)))
 
-(define-public rust-convert-case-0.4
+(define-public rust-convert-case-0.6
   (package
     (name "rust-convert-case")
-    (version "0.4.0")
+    (version "0.6.0")
     (source
      (origin
        (method url-fetch)
        (uri (crate-uri "convert-case" version))
        (file-name (string-append name "-" version ".tar.gz"))
        (sha256
-        (base32 "03jaf1wrsyqzcaah9jf8l1iznvdw5mlsca2qghhzr9w27sddaib2"))))
+        (base32 "1jn1pq6fp3rri88zyw6jlhwwgf6qiyc08d6gjv0qypgkl862n67c"))
+       (modules '((guix build utils)))
+       (snippet
+        '(begin (substitute* "Cargo.toml"
+                  (("\"~([[:digit:]]+(\\.[[:digit:]]+)*)" _ version)
+                   (string-append "\"^" version)))))))
     (build-system cargo-build-system)
     (arguments
-     `(#:skip-build? #t
+     `(#:cargo-test-flags
+       (list "--release" "--"
+             "--skip=case::Case::PseudoRandom"
+             "--skip=case::Case::Random"
+             "--skip=pattern::Pattern::PseudoRandom")
        #:cargo-inputs
-       (("rust-rand" ,rust-rand-0.7))))
+       (("rust-rand" ,rust-rand-0.7)
+        ("rust-unicode-segmentation" ,rust-unicode-segmentation-1))
+       #:cargo-development-inputs
+       (("rust-strum" ,rust-strum-0.18)
+        ("rust-strum-macros" ,rust-strum-macros-0.18))))
     (home-page "https://github.com/rutrum/convert-case";)
     (synopsis "Convert strings into any case")
     (description "Convert strings into any case.")
     (license license:expat)))
 
+(define-public rust-convert-case-0.4
+  (package
+    (inherit rust-convert-case-0.6)
+    (name "rust-convert-case")
+    (version "0.4.0")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (crate-uri "convert-case" version))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32 "03jaf1wrsyqzcaah9jf8l1iznvdw5mlsca2qghhzr9w27sddaib2"))))
+    (arguments
+     `(#:skip-build? #t
+       #:cargo-inputs
+       (("rust-rand" ,rust-rand-0.7))))))
+
 (define-public rust-cookie-0.17
   (package
     (name "rust-cookie")



reply via email to

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