From c434a3fbc09f5e56f29c0d86b6c02cd6cb79cec6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakub=20K=C4=85dzio=C5=82ka?= Date: Wed, 24 Jun 2020 16:45:04 +0200 Subject: [PATCH] gnu: Add rust-humantime-2. * gnu/packages/crates-io.scm (rust-humantime-2): New variable. (rust-humantime-1.3): Inherit from rust-humantime-2. --- gnu/packages/crates-io.scm | 38 +++++++++++++++++++++++++++++--------- 1 file changed, 29 insertions(+), 9 deletions(-) diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm index 2846b997f5..9ed8bc6e39 100644 --- a/gnu/packages/crates-io.scm +++ b/gnu/packages/crates-io.scm @@ -10003,8 +10003,36 @@ (define-public rust-httparse-1.3 "This package provides a tiny, safe, speedy, zero-copy HTTP/1.x parser.") (license (list license:asl2.0 license:expat)))) +(define-public rust-humantime-2 + (package + (name "rust-humantime") + (version "2.0.1") + (source + (origin + (method url-fetch) + (uri (crate-uri "humantime" version)) + (file-name + (string-append name "-" version ".tar.gz")) + (sha256 + (base32 + "0yivhqyi8xik2j6sd3q45ybakjx8jsx5632dx9xjn0birh4dj6iw")))) + (build-system cargo-build-system) + (arguments + `(#:cargo-development-inputs + (("rust-chrono" ,rust-chrono-0.4) + ("rust-rand" ,rust-rand-0.6) + ("rust-time" ,rust-time-0.1)))) + (home-page "https://github.com/tailhook/humantime") + (synopsis + "Parser and formatter for Duration and SystemTime") + (description + "A parser and formatter for @code{std::time::{Duration, +SystemTime}}.") + (license (list license:expat license:asl2.0)))) + (define-public rust-humantime-1.3 (package + (inherit rust-humantime-2) (name "rust-humantime") (version "1.3.0") (source @@ -10016,7 +10044,6 @@ (define-public rust-humantime-1.3 (sha256 (base32 "0krwgbf35pd46xvkqg14j070vircsndabahahlv3rwhflpy4q06z")))) - (build-system cargo-build-system) (arguments `(#:skip-build? #t #:cargo-inputs @@ -10024,14 +10051,7 @@ (define-public rust-humantime-1.3 #:cargo-development-inputs (("rust-chrono" ,rust-chrono-0.4) ("rust-rand" ,rust-rand-0.4) - ("rust-time" ,rust-time-0.1)))) - (home-page "https://github.com/tailhook/humantime") - (synopsis - "Parser and formatter for Duration and SystemTime") - (description - "A parser and formatter for @code{std::time::{Duration, -SystemTime}}.") - (license (list license:expat license:asl2.0)))) + ("rust-time" ,rust-time-0.1)))))) (define-public rust-hyper-0.12 (package