From patchwork Mon Dec 27 16:50:49 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "\\(" X-Patchwork-Id: 35695 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 1201927BBEA; Mon, 27 Dec 2021 16:53:58 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL, SPF_HELO_PASS,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 879B227BBE9 for ; Mon, 27 Dec 2021 16:53:57 +0000 (GMT) Received: from localhost ([::1]:53320 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1n1tG0-0007Wa-NE for patchwork@mira.cbaines.net; Mon, 27 Dec 2021 11:53:56 -0500 Received: from eggs.gnu.org ([209.51.188.92]:34438) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n1tFA-0006kc-87 for guix-patches@gnu.org; Mon, 27 Dec 2021 11:53:04 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:60828) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1n1tF9-0000DZ-Oz for guix-patches@gnu.org; Mon, 27 Dec 2021 11:53:03 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1n1tF9-0001Bv-Nn for guix-patches@gnu.org; Mon, 27 Dec 2021 11:53:03 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#52149] [PATCH 12/26] gnu: Add rust-time-0.3. Resent-From: "(unmatched-parenthesis" Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 27 Dec 2021 16:53:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 52149 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 52149@debbugs.gnu.org Cc: "\(unmatched-parenthesis" Received: via spool by 52149-submit@debbugs.gnu.org id=B52149.16406239344295 (code B ref 52149); Mon, 27 Dec 2021 16:53:03 +0000 Received: (at 52149) by debbugs.gnu.org; 27 Dec 2021 16:52:14 +0000 Received: from localhost ([127.0.0.1]:44094 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n1tEM-000170-AN for submit@debbugs.gnu.org; Mon, 27 Dec 2021 11:52:14 -0500 Received: from knopi.disroot.org ([178.21.23.139]:56846) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n1tEG-000168-FX for 52149@debbugs.gnu.org; Mon, 27 Dec 2021 11:52:08 -0500 Received: from localhost (localhost [127.0.0.1]) by disroot.org (Postfix) with ESMTP id DBB8B50F9F; Mon, 27 Dec 2021 17:52:07 +0100 (CET) X-Virus-Scanned: SPAM Filter at disroot.org Received: from knopi.disroot.org ([127.0.0.1]) by localhost (disroot.org [127.0.0.1]) (amavisd-new, port 10024) with UTF8SMTP id mm2zuBXtv4qU; Mon, 27 Dec 2021 17:52:06 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=disroot.org; s=mail; t=1640623891; bh=fA2iFjP25dLM6+6Zd4ztDNQu+j4feQybL17hs4SFUDA=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=hzSaWmLFL3vISQC+bJqpwV9B2/xou2gJ9apIxgexNMjHG65WpYD6uRNUJvPucXrUg GL7HFj4fuh5Y2lnxj/Y76CXTcXgvR9JdeCEh3+o9Zr7Xbo8IRTqdq0u8xxOPAIGho7 uM4APTQCzEWGOPpAemQcAKPxocTuPKhLXDdwcupMQhQ+rz0S9K7wZFlb1b6LX0m+O2 awnhZ6zHtuhs5gXsSduQbthMox0QyGw5hj1pK401Tmw4ISJSHvotImfdT0HKDX+BbC yrcWosMpuw2Xph6U84o2aq5nNlDgR5SpbatVHBmHEddoU0/B83gz4j3iukpk+ovyp+ otRYnxTHGS5Ig== Date: Mon, 27 Dec 2021 16:50:49 +0000 Message-Id: <20211227165103.10075-12-paren@disroot.org> In-Reply-To: <20211227165103.10075-1-paren@disroot.org> References: <20211227165103.10075-1-paren@disroot.org> Mime-Version: 1.0 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" Reply-to: "\(unmatched-parenthesis" X-ACL-Warn: , "\(unmatched-parenthesis via Guix-patches" X-Patchwork-Original-From: "\(unmatched-parenthesis via Guix-patches" via From: "\\(" X-getmail-retrieved-from-mailbox: Patches * gnu/packages/crates-io.scm (rust-time-0.3): New variable. * gnu/packages/crates-io.scm (rust-time-0.2): Inherit from rust-time-0.3. * gnu/packages/crates-io.scm (rust-time-0.1): Inherit from rust-time-0.2. --- gnu/packages/crates-io.scm | 61 ++++++++++++++++++++++++++++---------- 1 file changed, 45 insertions(+), 16 deletions(-) diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm index f9bb0e7cca..268caec740 100644 --- a/gnu/packages/crates-io.scm +++ b/gnu/packages/crates-io.scm @@ -54810,8 +54810,44 @@ (define-public rust-tikv-jemalloc-ctl-0.4 introspection APIs.") (license (list license:expat license:asl2.0)))) +(define-public rust-time-0.3 + (package + (name "rust-time") + (version "0.3.5") + (source + (origin + (method url-fetch) + (uri (crate-uri "time" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 + "1b943jf54q1667i328x3z73fsjdhcqdqccxckx1nzwwaz9ygxvs1")))) + (build-system cargo-build-system) + (arguments + `(#:cargo-inputs + (("rust-itoa" ,rust-itoa-0.4) + ("rust-libc" ,rust-libc-0.2) + ("rust-quickcheck" ,rust-quickcheck-1) + ("rust-rand" ,rust-rand-0.8) + ("rust-serde" ,rust-serde-1) + ("rust-time-macros" ,rust-time-macros-0.2)) + #:cargo-development-inputs + (("rust-criterion" ,rust-criterion-0.3) + ("rust-criterion-cycles-per-byte" ,rust-criterion-cycles-per-byte-0.1) + ("rust-rand" ,rust-rand-0.8) + ("rust-serde" ,rust-serde-1) + ("rust-serde-test" ,rust-serde-test-1) + ("rust-trybuild" ,rust-trybuild-1)))) + (home-page "https://github.com/time-rs/time") + (synopsis "Date and time library") + (description "This package provides a date and time library. It is fully +interoperable with the standard library, and is mostly compatible with +@code{#![no_std]}.") + (license (list license:expat license:asl2.0)))) + (define-public rust-time-0.2 (package + (inherit rust-time-0.3) (name "rust-time") (version "0.2.23") (source @@ -54821,7 +54857,6 @@ (define-public rust-time-0.2 (file-name (string-append name "-" version ".tar.gz")) (sha256 (base32 "12z95k0005rmyn9pf9v4hq80khsns7y5wfydnjr5jpci2yiyxnmw")))) - (build-system cargo-build-system) (arguments `(#:cargo-inputs (("rust-const-fn" ,rust-const-fn-0.4) @@ -54836,27 +54871,21 @@ (define-public rust-time-0.2 #:cargo-development-inputs (("rust-rand" ,rust-rand-0.7) ("rust-serde-json" ,rust-serde-json-1) - ("rust-standback" ,rust-standback-0.2)))) - (home-page "https://github.com/time-rs/time") - (synopsis "Date and time library") - (description "This package provides a date and time library. It is fully -interoperable with the standard library, and is mostly compatible with -@code{#![no_std]}.") - (license (list license:expat license:asl2.0)))) + ("rust-standback" ,rust-standback-0.2)))))) (define-public rust-time-0.1 (package + (inherit rust-time-0.2) (name "rust-time") (version "0.1.43") (source - (origin - (method url-fetch) - (uri (crate-uri "time" version)) - (file-name (string-append name "-" version ".tar.gz")) - (sha256 - (base32 - "0f14wrgxj7ya2v4msg5mni7046bsm2angm7cn3pd3yv04gpm12na")))) - (build-system cargo-build-system) + (origin + (method url-fetch) + (uri (crate-uri "time" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 + "0f14wrgxj7ya2v4msg5mni7046bsm2angm7cn3pd3yv04gpm12na")))) (arguments `(#:skip-build? #t #:cargo-inputs