From patchwork Tue Nov 29 07:00:25 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "\\(" X-Patchwork-Id: 44911 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 798C527BBEB; Tue, 29 Nov 2022 07:03:12 +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=-3.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,RCVD_IN_MSPIKE_H2,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 A69E027BBE9 for ; Tue, 29 Nov 2022 07:03:10 +0000 (GMT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ozud9-0002yJ-SZ; Tue, 29 Nov 2022 02:02:11 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ozud6-0002wh-HB for guix-patches@gnu.org; Tue, 29 Nov 2022 02:02:09 -0500 Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ozud6-0003m5-5r for guix-patches@gnu.org; Tue, 29 Nov 2022 02:02:08 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ozud6-0004pH-20 for guix-patches@gnu.org; Tue, 29 Nov 2022 02:02:08 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#59670] [PATCH 11/50] gnu: Add rust-rstest-0.15. Resent-From: "(" Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Tue, 29 Nov 2022 07:02:08 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 59670 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 59670@debbugs.gnu.org Cc: "\(" Received: via spool by 59670-submit@debbugs.gnu.org id=B59670.166970530118286 (code B ref 59670); Tue, 29 Nov 2022 07:02:08 +0000 Received: (at 59670) by debbugs.gnu.org; 29 Nov 2022 07:01:41 +0000 Received: from localhost ([127.0.0.1]:53692 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ozucf-0004km-7D for submit@debbugs.gnu.org; Tue, 29 Nov 2022 02:01:41 -0500 Received: from knopi.disroot.org ([178.21.23.139]:53084) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ozucF-0004fW-FW for 59670@debbugs.gnu.org; Tue, 29 Nov 2022 02:01:17 -0500 Received: from localhost (localhost [127.0.0.1]) by disroot.org (Postfix) with ESMTP id E07CE4143A; Tue, 29 Nov 2022 08:01:14 +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 ESMTP id DRMM5sG6KUFy; Tue, 29 Nov 2022 08:01:13 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=disroot.org; s=mail; t=1669705272; bh=lFBhA3TGhApYDwiOrIFb4qA+vRZKA3NyNbGGpqIhOLY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=AGLrtJrSLcr82h8ttTCpxhT2mJXxv769aQNMSVYG4yM/B4N5O2P2reFrOh6HUwwt0 9H6JSXUYYP04TARSSnZHlr5s9yk8oVJffr4IokckiI9ehea9BKP/R5sCPPMTDkqxlr dSTo+w2O5y93Ftzk8odivphTIiGpN+zYDxvDqQsRkEy7Wky/xnuZcuF2jqJeJie767 1nJ0m5oGC3J1ndM222wFEE8OIDXUru5UsDgYKuLuqJvfO6gSOle4qa8E6D/+ZhSaEQ T4TrzH+WN/PW9Vi9EsLxEgolRsPdaxyZd+ZcT7bOxS4CzSuDESEPw6BeyGAyO9rvxs JpvtzJj94svEA== Date: Tue, 29 Nov 2022 07:00:25 +0000 Message-Id: <20221129070104.8007-11-paren@disroot.org> In-Reply-To: <20221129070104.8007-1-paren@disroot.org> References: <20221129070104.8007-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: , Reply-to: "\(" X-ACL-Warn: , "\( via Guix-patches" X-Patchwork-Original-From: "\( via Guix-patches" via From: "\\(" Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org X-getmail-retrieved-from-mailbox: Patches * gnu/packages/crates-io.scm (rust-rstest-0.15): New variable. (rust-rstest-0.10): Inherit from RUST-RSTEST-0.15. (rust-rstest-0.6): Inherit from RUST-RSTEST-0.10. --- gnu/packages/crates-io.scm | 84 ++++++++++++++++++++------------------ 1 file changed, 45 insertions(+), 39 deletions(-) diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm index 3940bf9ed3..04083deeb5 100644 --- a/gnu/packages/crates-io.scm +++ b/gnu/packages/crates-io.scm @@ -46770,59 +46770,65 @@ (define-public rust-rstar-0.8 (base32 "1b6vjfwvpcgy0q8ywywz548vhxrmhbz2sm6xyhnmj5p5xd1xfqff")))))) -(define-public rust-rstest-0.6 +(define-public rust-rstest-0.15 (package (name "rust-rstest") - (version "0.6.5") - (source - (origin - (method url-fetch) - (uri (crate-uri "rstest" version)) - (file-name (string-append name "-" version ".tar.gz")) - (sha256 - (base32 "1wdd0ci0bn6fd5v5c19lhlqrpadk18fl4jzvh75b26616anlxdil")))) + (version "0.15.0") + (source (origin + (method url-fetch) + (uri (crate-uri "rstest" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 + "0c5r8wimr2fv3x25dbb99rk165lzcsz6jlpv7xk2ny99rikdrjg9")))) (build-system cargo-build-system) (arguments - `(#:skip-build? #t - #:cargo-inputs - (("rust-cfg-if" ,rust-cfg-if-1) - ("rust-proc-macro2" ,rust-proc-macro2-1) - ("rust-quote" ,rust-quote-1) - ("rust-rustc-version" ,rust-rustc-version-0.3) - ("rust-syn" ,rust-syn-1)))) + (list #:skip-build? #t + #:cargo-inputs + `(("rust-futures" ,rust-futures-0.3) + ("rust-futures-timer" ,rust-futures-timer-3) + ("rust-rstest-macros" ,rust-rstest-macros-0.14) + ("rust-rustc-version" ,rust-rustc-version-0.3)))) (home-page "https://github.com/la10736/rstest") (synopsis "Rust fixture based test framework") (description - "rstest uses procedural macros to help you on writing fixtures and -table-based tests.") + "@code{rstest} uses procedural macros to help you write fixtures +and table-based tests.") (license (list license:expat license:asl2.0)))) (define-public rust-rstest-0.10 (package + (inherit rust-rstest-0.15) (name "rust-rstest") (version "0.10.0") - (source - (origin - (method url-fetch) - (uri (crate-uri "rstest" version)) - (file-name (string-append name "-" version ".tar.gz")) - (sha256 - (base32 "1bwhy92fsqc05y8x9iyyq9sykinh0gxnl25zpdca3xhl5hhb06q4")))) - (build-system cargo-build-system) + (source (origin + (method url-fetch) + (uri (crate-uri "rstest" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 + "1bwhy92fsqc05y8x9iyyq9sykinh0gxnl25zpdca3xhl5hhb06q4")))) (arguments - `(#:skip-build? #t - #:cargo-inputs - (("rust-cfg-if" ,rust-cfg-if-1) - ("rust-proc-macro2" ,rust-proc-macro2-1) - ("rust-quote" ,rust-quote-1) - ("rust-rustc-version" ,rust-rustc-version-0.3) - ("rust-syn" ,rust-syn-1)))) - (home-page "https://github.com/la10736/rstest") - (synopsis "Rust fixture based test framework") - (description - "rstest uses procedural macros to help you on writing fixtures and -table-based tests.") - (license (list license:expat license:asl2.0)))) + (list #:skip-build? #t + #:cargo-inputs + `(("rust-cfg-if" ,rust-cfg-if-1) + ("rust-proc-macro2" ,rust-proc-macro2-1) + ("rust-quote" ,rust-quote-1) + ("rust-rustc-version" ,rust-rustc-version-0.3) + ("rust-syn" ,rust-syn-1)))))) + +(define-public rust-rstest-0.6 + (package + (inherit rust-rstest-0.10) + (name "rust-rstest") + (version "0.6.5") + (source (origin + (method url-fetch) + (uri (crate-uri "rstest" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 + "1wdd0ci0bn6fd5v5c19lhlqrpadk18fl4jzvh75b26616anlxdil")))))) (define-public rust-rstest-macros-0.14 (package