From patchwork Sun Feb 18 21:02:07 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Herman Rimm X-Patchwork-Id: 60578 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 0D05727BBE2; Sun, 18 Feb 2024 21:09:51 +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_H4,RCVD_IN_MSPIKE_WL, SPF_HELO_PASS,URIBL_BLOCKED autolearn=ham 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 5829A27BBE9 for ; Sun, 18 Feb 2024 21:09:50 +0000 (GMT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rboOV-00032u-5I; Sun, 18 Feb 2024 16:08:15 -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 1rboO7-0002sa-KK for guix-patches@gnu.org; Sun, 18 Feb 2024 16:07:51 -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 1rboO1-0005sc-Sq for guix-patches@gnu.org; Sun, 18 Feb 2024 16:07:47 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rboOM-00031n-5T; Sun, 18 Feb 2024 16:08:06 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#69257] [PATCH 009/228] gnu: Add rust-proptest-derive-0.4. Resent-From: Herman Rimm Original-Sender: "Debbugs-submit" Resent-CC: efraim@flashner.co.il, guix-patches@gnu.org Resent-Date: Sun, 18 Feb 2024 21:08:06 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 69257 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 69257@debbugs.gnu.org Cc: Herman Rimm , Efraim Flashner X-Debbugs-Original-Xcc: Efraim Flashner Received: via spool by 69257-submit@debbugs.gnu.org id=B69257.170829048111523 (code B ref 69257); Sun, 18 Feb 2024 21:08:06 +0000 Received: (at 69257) by debbugs.gnu.org; 18 Feb 2024 21:08:01 +0000 Received: from localhost ([127.0.0.1]:38737 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rboOG-0002zf-V2 for submit@debbugs.gnu.org; Sun, 18 Feb 2024 16:08:01 -0500 Received: from 81-205-150-117.fixed.kpn.net ([81.205.150.117]:47919 helo=email.rimm.ee) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rboNm-0002u0-D2 for 69257@debbugs.gnu.org; Sun, 18 Feb 2024 16:07:31 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rimm.ee; s=herman; t=1708290418; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=MhMwstMt8tJObd9J9f+dEh3zlIHlylSsOO/mtjf5gWE=; b=jewzEX2lpkpQMPequaaHse/A/C+5z0XNLA71pqpHKFbPFdwDB33HCX/EuvPKUqnzHpl7uB vKmzyFSpPU728QkyXT4Ncrky5bdHTASXmFMH8I9yVhNzPiZ/JMZh4AFA133bOSBNIJH8lo uBVzHZ8s4PdAK3vt1f8HrSITvhlPUf0iHIleb5frQIjCZnEqGKxrGs8faKs24QjhgC4ObM wPbWb3+SSMIaZkQM5vU76dPPKUhR6Mp2pjEIMXhuYdP79BSO9K7/42RndO6vkrubjFfhRt snV098f7ZwBzT01uuT5ZSjrxpEAX33SljNDQYMs/pY6r6zfOT2noPvf+J3eoNg== Received: by 81-205-150-117.fixed.kpn.net (OpenSMTPD) with ESMTPSA id 031faa51 (TLSv1.3:TLS_CHACHA20_POLY1305_SHA256:256:NO); Sun, 18 Feb 2024 21:06:58 +0000 (UTC) Date: Sun, 18 Feb 2024 22:02:07 +0100 Message-ID: <65fe027f8407997005eb93d9f33a37b9215e55fe.1708288182.git.herman@rimm.ee> 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: Herman Rimm X-ACL-Warn: , Herman Rimm via Guix-patches X-Patchwork-Original-From: Herman Rimm via Guix-patches via From: Herman Rimm 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-proptest-derive-0.4): Add variable. (rust-proptest-derive-0.3): Inherit from rust-proptest-derive-0.4. --- gnu/packages/crates-io.scm | 44 +++++++++++++++++++++++++++++++------- 1 file changed, 36 insertions(+), 8 deletions(-) diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm index 51ab31cdb3..dcd373e4cb 100644 --- a/gnu/packages/crates-io.scm +++ b/gnu/packages/crates-io.scm @@ -50149,8 +50149,43 @@ (define-public rust-proptest-0.3 #:cargo-development-inputs (("rust-regex" ,rust-regex-0.2)))))) +(define-public rust-proptest-derive-0.4 + (package + (name "rust-proptest-derive") + (version "0.4.0") + (source + (origin + (method url-fetch) + (uri (crate-uri "proptest-derive" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 "0vhb7zmnbmn0qvv6x7ibs88pg0mn6d3131c9qzlq982w80vn7wcw")) + (modules '((guix build utils))) + ;; Need never_type nightly feature. + (snippet '(begin (delete-file "tests/uninhabited-pass.rs") + (delete-file "tests/enum.rs") + (delete-file "tests/skip.rs"))))) + (build-system cargo-build-system) + (arguments + `(#:cargo-test-flags ; Tests panic for unknown reason. + '("--release" "--" "--skip=compile_test") + #:cargo-inputs (("rust-proc-macro2" ,rust-proc-macro2-1) + ("rust-quote" ,rust-quote-1) + ("rust-syn" ,rust-syn-1)) + #:cargo-development-inputs + (("rust-compiletest-rs" ,rust-compiletest-rs-0.9) + ("rust-criterion" ,rust-criterion-0.5) + ("rust-proptest" ,rust-proptest-1)))) + (home-page + "https://proptest-rs.github.io/proptest/proptest-derive/index.html") + (synopsis "Custom-derive for the Arbitrary trait of proptest") + (description "This package provides a custom-derive for the Arbitrary +trait of proptest.") + (license (list license:expat license:asl2.0)))) + (define-public rust-proptest-derive-0.3 (package + (inherit rust-proptest-derive-0.4) (name "rust-proptest-derive") (version "0.3.0") (source @@ -50160,7 +50195,6 @@ (define-public rust-proptest-derive-0.3 (file-name (string-append name "-" version ".tar.gz")) (sha256 (base32 "1p4x6k1zxq9lrpk46npdnzj6894mjx5bpwkwrdk63ird72an5d4h")))) - (build-system cargo-build-system) (arguments `(#:tests? #f ; Needs nightly features. #:cargo-inputs @@ -50170,13 +50204,7 @@ (define-public rust-proptest-derive-0.3 #:cargo-development-inputs (("rust-compiletest-rs" ,rust-compiletest-rs-0.3) ("rust-criterion" ,rust-criterion-0.2) - ("rust-proptest" ,rust-proptest-1)))) - (home-page - "https://altsysrq.github.io/proptest-book/proptest-derive/index.html") - (synopsis "Custom-derive for the Arbitrary trait of proptest") - (description "This package provides a Custom-derive for the Arbitrary -trait of proptest.") - (license (list license:expat license:asl2.0)))) + ("rust-proptest" ,rust-proptest-1)))))) (define-public rust-proptest-derive-0.1 (package