[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")
- 75/276: gnu: librsvg: Update to 2.56.4., (continued)
- 75/276: gnu: librsvg: Update to 2.56.4., guix-commits, 2023/10/18
- 79/276: gnu: Add rust-fastrand-2., guix-commits, 2023/10/18
- 81/276: gnu: rust-url-2: Update to 2.4.1., guix-commits, 2023/10/18
- 89/276: gnu: rust-cxxbridge-flags-1: Update to 1.0.107., guix-commits, 2023/10/18
- 88/276: gnu: rust-cxx-gen-0.7: Update to 0.7.107., guix-commits, 2023/10/18
- 83/276: gnu: newsboat: Update to 2.33., guix-commits, 2023/10/18
- 93/276: gnu: rust-miniz-oxide-0.6: Downgrade to 0.6.2., guix-commits, 2023/10/18
- 94/276: gnu: rust-miniz-oxide-0.5: Update to 0.5.4., guix-commits, 2023/10/18
- 116/276: gnu: python-cryptography-vectors: Update to 41.0.4., guix-commits, 2023/10/18
- 113/276: gnu: Add rust-asn1-derive-0.15., guix-commits, 2023/10/18
- 124/276: gnu: Add rust-convert-case-0.6.,
guix-commits <=
- 126/276: gnu: rust-is-macro-0.1: Update to 0.1.9., guix-commits, 2023/10/18
- 132/276: gnu: rust-test-case-1: Update to 1.2.3., guix-commits, 2023/10/18
- 133/276: gnu: Add rust-tstr-0.2., guix-commits, 2023/10/18
- 134/276: gnu: rust-unicode-segmentation-1: Update to 1.10.1., guix-commits, 2023/10/18
- 144/276: gnu: Add rust-unicode-id-0.3., guix-commits, 2023/10/18
- 143/276: gnu: Add rust-unreachable-0.1., guix-commits, 2023/10/18
- 150/276: gnu: Add rust-ntest-0.7., guix-commits, 2023/10/18
- 152/276: gnu: Add rust-magic-string-0.3., guix-commits, 2023/10/18
- 156/276: gnu: Add rust-debug-unreachable-0.1., guix-commits, 2023/10/18
- 158/276: gnu: Add rust-browserslist-rs-0.6., guix-commits, 2023/10/18