aboutsummaryrefslogtreecommitdiff
path: root/gnu
diff options
context:
space:
mode:
authorMaxim Cournoyer <maxim.cournoyer@gmail.com>2023-04-03 14:51:47 -0400
committerMaxim Cournoyer <maxim.cournoyer@gmail.com>2023-04-11 20:35:19 -0400
commit39b06acc6edcf3d65b9a46aebd75f6d22dbb788f (patch)
treead29f3165d02b62cda96b31ecbb38bee66874767 /gnu
parent8282b3b6259ea280fff548c23dee6abcdda206e8 (diff)
downloadguix-39b06acc6edcf3d65b9a46aebd75f6d22dbb788f.tar
guix-39b06acc6edcf3d65b9a46aebd75f6d22dbb788f.tar.gz
gnu: Add rust-base64-0.21.
* gnu/packages/crates-io.scm (rust-base64-0.21): New variable. (rust-base64-0.13): Inherit from it.
Diffstat (limited to 'gnu')
-rw-r--r--gnu/packages/crates-io.scm50
1 files changed, 39 insertions, 11 deletions
diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm
index e2ddd49400..ef81befec2 100644
--- a/gnu/packages/crates-io.scm
+++ b/gnu/packages/crates-io.scm
@@ -5733,8 +5733,42 @@ RFC4648 Base32 or in Crockford Base32.")
c6e7d37. However, this package works only up to 128 bytes.")
(license license:expat)))
+(define-public rust-base64-0.21
+ (package
+ (name "rust-base64")
+ (version "0.21.0")
+ (source (origin
+ (method url-fetch)
+ (uri (crate-uri "base64" version))
+ (file-name (string-append name "-" version ".tar.gz"))
+ (sha256
+ (base32
+ "0sidjip5b33sr6w7kasfj9qxpbda41nw0x4gjjk55g55a6mdv954"))))
+ (build-system cargo-build-system)
+ (arguments
+ `(#:cargo-development-inputs
+ (("rust-criterion" ,rust-criterion-0.4)
+ ("rust-rand" ,rust-rand-0.8)
+ ("rust-rstest" ,rust-rstest-0.15)
+ ("rust-rstest-reuse" ,rust-rstest-reuse-0.4)
+ ("rust-structopt" ,rust-structopt-0.3))
+ #:phases (modify-phases %standard-phases
+ (add-after 'unpack 'relax-requirements
+ (lambda _
+ (substitute* "Cargo.toml"
+ (("0.12.0")
+ ,(package-version rust-rstest-0.15))
+ (("0.3.0")
+ ,(package-version rust-rstest-reuse-0.4))))))))
+ (home-page "https://github.com/marshallpierce/rust-base64")
+ (synopsis "Encodes and decodes base64 as bytes or utf8")
+ (description
+ "This package encodes and decodes base64 as bytes or utf8.")
+ (license (list license:expat license:asl2.0))))
+
(define-public rust-base64-0.13
(package
+ (inherit rust-base64-0.21)
(name "rust-base64")
(version "0.13.0")
(source
@@ -5745,7 +5779,6 @@ c6e7d37. However, this package works only up to 128 bytes.")
(string-append name "-" version ".tar.gz"))
(sha256
(base32 "1z82g23mbzjgijkpcrilc7nljpxpvpf7zxf6iyiapkgka2ngwkch"))))
- (build-system cargo-build-system)
(arguments
`(#:skip-build? #t
#:cargo-development-inputs
@@ -5753,17 +5786,12 @@ c6e7d37. However, this package works only up to 128 bytes.")
("rust-rand" ,rust-rand-0.6)
("rust-structopt" ,rust-structopt-0.3))
#:phases
- (modify-phases %standard-phases
+ (modify-phases %standard-phases
(add-after 'unpack 'fix-criterion-minor-version
- (lambda* _
- (substitute* "Cargo.toml"
- (("0\\.3\\.2")
- ,(package-version rust-criterion-0.3))))))))
- (home-page "https://github.com/marshallpierce/rust-base64")
- (synopsis "Encodes and decodes base64 as bytes or utf8")
- (description
- "This package encodes and decodes base64 as bytes or utf8.")
- (license (list license:expat license:asl2.0))))
+ (lambda* _
+ (substitute* "Cargo.toml"
+ (("0\\.3\\.2")
+ ,(package-version rust-criterion-0.3))))))))))
(define-public rust-base64-0.12
(package