From patchwork Wed Dec 20 03:54:44 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jaeme Sifat X-Patchwork-Id: 57887 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 B665F27BBE9; Wed, 20 Dec 2023 04:06:16 +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,FREEMAIL_FROM,MAILING_LIST_MULTI,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 2AA7B27BBE2 for ; Wed, 20 Dec 2023 04:06:15 +0000 (GMT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rFnqQ-00029i-QG; Tue, 19 Dec 2023 23:06:06 -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 1rFnqK-000295-7P for guix-patches@gnu.org; Tue, 19 Dec 2023 23:06:03 -0500 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rFnqI-00067s-Vw for guix-patches@gnu.org; Tue, 19 Dec 2023 23:05:59 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rFnqL-0004gD-U0; Tue, 19 Dec 2023 23:06:01 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#67919] [PATCH 22/55] gnu: Add rust-rstest-macros-0.18. Resent-From: Jaeme Sifat Original-Sender: "Debbugs-submit" Resent-CC: efraim@flashner.co.il, guix-patches@gnu.org Resent-Date: Wed, 20 Dec 2023 04:06:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 67919 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 67919@debbugs.gnu.org Cc: Jaeme Sifat , Efraim Flashner X-Debbugs-Original-Xcc: Efraim Flashner Received: via spool by 67919-submit@debbugs.gnu.org id=B67919.170304511817913 (code B ref 67919); Wed, 20 Dec 2023 04:06:01 +0000 Received: (at 67919) by debbugs.gnu.org; 20 Dec 2023 04:05:18 +0000 Received: from localhost ([127.0.0.1]:38234 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rFnpe-0004ep-9Z for submit@debbugs.gnu.org; Tue, 19 Dec 2023 23:05:18 -0500 Received: from mailtransmit04.runbox.com ([2a0c:5a00:149::25]:36758) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rFnpb-0004eY-50 for 67919@debbugs.gnu.org; Tue, 19 Dec 2023 23:05:16 -0500 Received: from mailtransmit02.runbox ([10.9.9.162] helo=aibo.runbox.com) by mailtransmit04.runbox.com with esmtps (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.93) (envelope-from ) id 1rFnpS-00FPvX-Fu for 67919@debbugs.gnu.org; Wed, 20 Dec 2023 05:05:06 +0100 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=runbox.com; s=selector2; h=Content-Transfer-Encoding:MIME-Version:References:In-Reply-To :Message-ID:Date:Subject:Cc:To:From; bh=6EuO1dUUfyve9H2r4OUrzWFNJCKblWr31EqWPrhMTxU=; b=iGYRgg7l3UfVApN/lP9lYM3cpq yYkMb5kkPrI4E2Crg1dO3n8XAhHzTtnGXecPlM+tjaZGSnQrVU58mxR5Jw3ZKyPTPT9nCjO/SgkJn DeV/vDjek1MqWguandajhlmdQlqAW2gg37RGhUD99DF+oZ/Mv0Vh3eKKxA3OSbY8bSHh8Lx3Dt77c WxDU/HzeBVob3hOm1DSftG4mjtgJPfUmrGI7ATnczDn+/uVZElK6tdP6d8UGO/ZOG7YxDOwiGP7j1 YM7uElUiisL15G95CYo30QC9BkpSHmPJtQwDxjlpf7IC4v6nzVOef7p7XjdwEahVspHKZ3ywnCB7H lleF/8xg==; Received: from [10.9.9.73] (helo=submission02.runbox) by mailtransmit02.runbox with esmtp (Exim 4.86_2) (envelope-from ) id 1rFnpI-0003wE-6i for 67919@debbugs.gnu.org; Wed, 20 Dec 2023 05:04:56 +0100 Received: by submission02.runbox with esmtpsa [Authenticated ID (1176697)] (TLS1.2:ECDHE_SECP256R1__RSA_PSS_RSAE_SHA256__AES_256_GCM:256) (Exim 4.93) id 1rFnp2-0066Gp-4Y; Wed, 20 Dec 2023 05:04:40 +0100 Date: Tue, 19 Dec 2023 22:54:44 -0500 Message-ID: X-Mailer: git-send-email 2.41.0 In-Reply-To: References: 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: Jaeme Sifat X-ACL-Warn: , Jaeme Sifat via Guix-patches X-Patchwork-Original-From: Jaeme Sifat via Guix-patches via From: Jaeme Sifat 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 The dependency graph for rstest is not required. * gnu/packages/crates-io.scm (rust-rstest-macros-0.18): New variable. * gnu/packages/crates-io.scm (rust-rstest-macros-0.16): Remove build step. Change-Id: I3dad2b73c27a4cf575698ca9e32715718667be81 --- gnu/packages/crates-io.scm | 89 ++++++++++++++++++++++++++------------ 1 file changed, 62 insertions(+), 27 deletions(-) diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm index 888fd80bd6..4c2cde2b02 100644 --- a/gnu/packages/crates-io.scm +++ b/gnu/packages/crates-io.scm @@ -63958,8 +63958,39 @@ (define-public rust-rstest-0.6 (base32 "0f3wdwfhf4dh7yf49cmi0r40qnwi4gwrqdki1bffyxvr2ny4ii6y")))))) +(define-public rust-rstest-macros-0.18 + (package + (name "rust-rstest-macros") + (version "0.18.2") + (source + (origin + (method url-fetch) + (uri (crate-uri "rstest_macros" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 "01g6rg60snmscipc9xiili7nsn0v25sv64713gp99y2jg0jgha6l")))) + (build-system cargo-build-system) + (arguments + `(#:skip-build? #t + #:cargo-inputs (("rust-cfg-if" ,rust-cfg-if-1) + ("rust-glob" ,rust-glob-0.3) + ("rust-proc-macro2" ,rust-proc-macro2-1) + ("rust-quote" ,rust-quote-1) + ("rust-regex" ,rust-regex-1) + ("rust-relative-path" ,rust-relative-path-1) + ("rust-rustc-version" ,rust-rustc-version-0.4) + ("rust-syn" ,rust-syn-2) + ("rust-unicode-ident" ,rust-unicode-ident-1)))) + (home-page "https://github.com/la10736/rstest") + (synopsis "Procedural macros for @code{rstest}.") + (description + "This package provides the procedural macro crate for +@code{rstest}.") + (license (list license:expat license:asl2.0)))) + (define-public rust-rstest-macros-0.16 (package + (inherit rust-rstest-macros-0.18) (name "rust-rstest-macros") (version "0.16.0") (source @@ -63969,31 +64000,15 @@ (define-public rust-rstest-macros-0.16 (file-name (string-append name "-" version ".tar.gz")) (sha256 (base32 "1xzrgwjih87myghqzm9ncqm0449y2sf4migz6x7yc1h7mq2vaabj")))) - (build-system cargo-build-system) (arguments - `(#:cargo-test-flags '("--release" "--" - "--skip=rstest (line 740)" - "--skip=rstest (line 764)") + `(#: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.4) ("rust-syn" ,rust-syn-1) - ("rust-unicode-ident" ,rust-unicode-ident-1)) - #:cargo-development-inputs - (("rust-actix-rt" ,rust-actix-rt-2) - ("rust-async-std" ,rust-async-std-1) - ("rust-pretty-assertions" ,rust-pretty-assertions-1) - ("rust-rstest" ,rust-rstest-0.15) - ("rust-rstest-reuse" ,rust-rstest-reuse-0.4) - ("rust-rstest-test" ,rust-rstest-test-0.9)))) - (home-page "https://github.com/la10736/rstest") - (synopsis "Procedural macros for @code{rstest}.") - (description - "This package provides the procedural macro crate for -@code{rstest}.") - (license (list license:expat license:asl2.0)))) + ("rust-unicode-ident" ,rust-unicode-ident-1)))))) (define-public rust-rstest-macros-0.14 (package @@ -64037,8 +64052,36 @@ (define-public rust-rstest-macros-0.13 ("rust-rustc-version" ,rust-rustc-version-0.4) ("rust-syn" ,rust-syn-1)))))) +(define-public rust-rstest-reuse-0.6 + (package + (name "rust-rstest-reuse") + (version "0.6.0") + (source + (origin + (method url-fetch) + (uri (crate-uri "rstest_reuse" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 "191l5gfwx9rmkqd48s85fkh21b73f38838fc896r4rxy39l0nlw8")))) + (build-system cargo-build-system) + (arguments + `(#:skip-build? #t + #:cargo-inputs + (("rust-quote" ,rust-quote-1) + ("rust-rand" ,rust-rand-0.8) + ("rust-rustc-version" ,rust-rustc-version-0.4) + ("rust-syn" ,rust-syn-2)))) + (home-page "https://github.com/la10736/rstest") + (synopsis "Reuse rstest attributes") + (description + "This package provides a Rust library for reusing rstest +attributes by creating a set of tests and applying it to every +scenario you want to test.") + (license (list license:expat license:asl2.0)))) + (define-public rust-rstest-reuse-0.4 (package + (inherit rust-rstest-reuse-0.6) (name "rust-rstest-reuse") (version "0.4.0") (source (origin @@ -64048,20 +64091,12 @@ (define-public rust-rstest-reuse-0.4 (sha256 (base32 "05zcs22fbvv7q50p2xs6w13lqbcklddnj2dm1mz1wi2pak9sxdgr")))) - (build-system cargo-build-system) (arguments (list #:skip-build? #t #:cargo-inputs `(("rust-quote" ,rust-quote-1) ("rust-rustc-version" ,rust-rustc-version-0.4) - ("rust-syn" ,rust-syn-1)))) - (home-page "https://github.com/la10736/rstest") - (synopsis "Reuse rstest attributes") - (description - "This package provides a Rust library for reusing rstest -attributes by creating a set of tests and applying it to every -scenario you want to test.") - (license (list license:expat license:asl2.0)))) + ("rust-syn" ,rust-syn-1)))))) (define-public rust-rstest-reuse-0.3 (package