aboutsummaryrefslogtreecommitdiff
path: root/gnu/packages/crates-io.scm
diff options
context:
space:
mode:
authorEfraim Flashner <efraim@flashner.co.il>2023-10-03 09:50:52 +0300
committerEfraim Flashner <efraim@flashner.co.il>2023-10-18 11:36:03 +0300
commitf362a832985e8823b7474a96352f7ad6937977ce (patch)
tree8166f3d918a6db951ec6535cd62e8ca4025d3230 /gnu/packages/crates-io.scm
parent1958021713152c30cfa3b573d605fef7327be8d2 (diff)
downloadguix-f362a832985e8823b7474a96352f7ad6937977ce.tar.gz
guix-f362a832985e8823b7474a96352f7ad6937977ce.zip
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.
Diffstat (limited to 'gnu/packages/crates-io.scm')
-rw-r--r--gnu/packages/crates-io.scm40
1 files 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")