From 0da49ff0ab510e05dc5691bf6e12b463d3745a51 Mon Sep 17 00:00:00 2001 From: Valentin Ignatev Date: Sun, 2 Feb 2020 03:44:17 +0300 Subject: [PATCH 272/275] gnu: Add rust-http-req-0.5. * gnu/packages/crates-io.scm (rust-http-req-0.5): New variable. --- gnu/packages/crates-io.scm | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm index f41f99de1b..9377117504 100644 --- a/gnu/packages/crates-io.scm +++ b/gnu/packages/crates-io.scm @@ -7140,6 +7140,34 @@ compile time.") requests and responses.") (license (list license:asl2.0 license:expat)))) +(define-public rust-http-req-0.5 + (package + (name "rust-http-req") + (version "0.5.4") + (source + (origin + (method url-fetch) + (uri (crate-uri "http_req" version)) + (file-name + (string-append name "-" version ".tar.gz")) + (sha256 + (base32 + "0qaw43nwvvxbnqddxhb9fh9316dn64nmkzj08pq8n49qdy51xrys")))) + (build-system cargo-build-system) + (arguments + `(#:skip-build? #t + #:cargo-inputs + ;; Haven't packaged rustls and webpki because of license + (("rust-native-tls" ,rust-native-tls-0.2) + ("rust-unicase" ,rust-unicase-2.4)))) + (home-page + "https://github.com/jayjamesjay/http_req") + (synopsis + "simple and lightweight HTTP client with built-in HTTPS support") + (description + "simple and lightweight HTTP client with built-in HTTPS support") + (license license:expat))) + (define-public rust-httparse-1.3 (package (name "rust-httparse") -- 2.25.0