gnu: Add rust-hyper-tls-0.6.

* gnu/packages/crates-web.scm (rust-hyper-tls-0.6): New variable.
(rust-hyper-tls-0.5): Inherit from above.

Change-Id: I2bf346c71bf4785b287aa91aab91f3575ba42e1c
This commit is contained in:
Nicolas Goaziou 2024-05-21 20:22:49 +02:00 committed by Efraim Flashner
parent f5e299be4d
commit 11488c589d
No known key found for this signature in database
GPG key ID: 41AAE7DCCA3D8351

View file

@ -3913,8 +3913,42 @@ (define-public rust-hyper-timeout-0.4
to be used with Hyper client.")
(license (list license:expat license:asl2.0))))
(define-public rust-hyper-tls-0.6
(package
(name "rust-hyper-tls")
(version "0.6.0")
(source
(origin
(method url-fetch)
(uri (crate-uri "hyper-tls" version))
(file-name (string-append name "-" version ".tar.gz"))
(sha256
(base32 "1q36x2yps6hhvxq5r7mc8ph9zz6xlb573gx0x3yskb0fi736y83h"))))
(build-system cargo-build-system)
(arguments
`(#:cargo-inputs
(("rust-bytes" ,rust-bytes-1)
("rust-http-body-util" ,rust-http-body-util-0.1)
("rust-hyper" ,rust-hyper-1)
("rust-hyper-util" ,rust-hyper-util-0.1)
("rust-native-tls" ,rust-native-tls-0.2)
("rust-tokio" ,rust-tokio-1)
("rust-tokio-native-tls" ,rust-tokio-native-tls-0.3)
("rust-tower-service" ,rust-tower-service-0.3))
#:cargo-development-inputs
(("rust-hyper-util" ,rust-hyper-util-0.1)
("rust-tokio" ,rust-tokio-1))))
(native-inputs (list pkg-config))
(inputs (list openssl))
(home-page "https://hyper.rs")
(synopsis "Default TLS implementation for use with hyper")
(description "This package provides the default TLS implementation for use
with hyper.")
(license (list license:expat license:asl2.0))))
(define-public rust-hyper-tls-0.5
(package
(inherit rust-hyper-tls-0.6)
(name "rust-hyper-tls")
(version "0.5.0")
(source
@ -3924,7 +3958,6 @@ (define-public rust-hyper-tls-0.5
(file-name (string-append name "-" version ".tar.gz"))
(sha256
(base32 "01crgy13102iagakf6q4mb75dprzr7ps1gj0l5hxm1cvm7gks66n"))))
(build-system cargo-build-system)
(arguments
`(#:skip-build? #t
#:cargo-inputs
@ -3932,12 +3965,7 @@ (define-public rust-hyper-tls-0.5
("rust-hyper" ,rust-hyper-0.14)
("rust-native-tls" ,rust-native-tls-0.2)
("rust-tokio" ,rust-tokio-1)
("rust-tokio-native-tls" ,rust-tokio-native-tls-0.3))))
(home-page "https://hyper.rs")
(synopsis "Default TLS implementation for use with hyper")
(description "This package provides the default TLS implementation for use
with hyper.")
(license (list license:expat license:asl2.0))))
("rust-tokio-native-tls" ,rust-tokio-native-tls-0.3))))))
(define-public rust-hyper-tls-0.4
(package