From patchwork Sat Jan 27 15:53:47 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Troy Figiel X-Patchwork-Id: 59516 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 8F3AD27BBE2; Sun, 28 Jan 2024 11:05:52 +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_H5,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 E424127BBE2 for ; Sun, 28 Jan 2024 11:05:50 +0000 (GMT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rU2yA-0001Yz-Dn; Sun, 28 Jan 2024 06:04:59 -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 1rU2y8-0001YM-Ij for guix-patches@gnu.org; Sun, 28 Jan 2024 06:04:56 -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 1rU2y8-0000FK-7v for guix-patches@gnu.org; Sun, 28 Jan 2024 06:04:56 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rU2yF-0006BR-QT for guix-patches@gnu.org; Sun, 28 Jan 2024 06:05:03 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#68780] [PATCH 05/19] gnu: Add rust-comfy-table-7. References: <87bk95hgik.fsf@troyfigiel.com> In-Reply-To: <87bk95hgik.fsf@troyfigiel.com> Resent-From: Troy Figiel Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sun, 28 Jan 2024 11:05:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 68780 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 68780@debbugs.gnu.org Received: via spool by 68780-submit@debbugs.gnu.org id=B68780.170643986623619 (code B ref 68780); Sun, 28 Jan 2024 11:05:03 +0000 Received: (at 68780) by debbugs.gnu.org; 28 Jan 2024 11:04:26 +0000 Received: from localhost ([127.0.0.1]:56680 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rU2xe-00068t-0W for submit@debbugs.gnu.org; Sun, 28 Jan 2024 06:04:26 -0500 Received: from mout-p-202.mailbox.org ([80.241.56.172]:37720) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rU2xb-00068b-DZ for 68780@debbugs.gnu.org; Sun, 28 Jan 2024 06:04:24 -0500 Received: from smtp202.mailbox.org (smtp202.mailbox.org [10.196.197.202]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mout-p-202.mailbox.org (Postfix) with ESMTPS id 4TN7pw1J6Fz9sb2 for <68780@debbugs.gnu.org>; Sun, 28 Jan 2024 12:04:08 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=troyfigiel.com; s=MBO0001; t=1706439848; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type; bh=m4dp/cuL278Mc3C4ttjzSOlKMQQK3gc+jvLYpXXEehs=; b=0tDvYsA1ydFVV8nQ7YHgRC9GWHu+DsKBy5cmWmwyIu4ZoNF3vBxhK7z6iuSy9MFrHBeiut ChChuDYQoYij2TGt5xevCYFtxC0pY4VSFiL69CRsaDRyUMlw9T6RS24j3n4+RDqS6jJrHE AhWg/UDyx7uyF368/N2ayNcmHAZfYDQB3EH28zDsw/Ii9XGU8m+SDisRi2J/+p1RfVeETj 7eGd/r1EG0fVYxk7uHqfup3Hpu3Tq9YQLXxL+e2oExx+mi+KRBOjgerM86gtUhothg1Kgc jqCNJVV62GDmfs3/A5oLqNkKY2jQ9AaaC/eF/XubUefj7o0pdCY3CkmNTtAagA== From: Troy Figiel Date: Sat, 27 Jan 2024 16:53:47 +0100 Message-ID: <874jexhg7s.fsf@troyfigiel.com> 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-bounces+patchwork=mira.cbaines.net@gnu.org X-getmail-retrieved-from-mailbox: Patches * gnu/packages/crates-io.scm (rust-comfy-table-7): New variable. (rust-comfy-table-4): Inherit from rust-comfy-table-7. --- gnu/packages/crates-io.scm | 42 ++++++++++++++++++++++++++++++-------- 1 file changed, 34 insertions(+), 8 deletions(-) diff --git a/gnu/packages/crates-io.scm b/gnu/packages/crates-io.scm index 02cfe3c531..c8bcd5520c 100644 --- a/gnu/packages/crates-io.scm +++ b/gnu/packages/crates-io.scm @@ -11548,8 +11548,41 @@ (define-public rust-combine-regex-1-1 and 1.0.") (license (list license:expat license:asl2.0)))) +(define-public rust-comfy-table-7 + (package + (name "rust-comfy-table") + (version "7.1.0") + (source + (origin + (method url-fetch) + (uri (crate-uri "comfy-table" version)) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 "11i6sm6vznv9982hqpbrba43vfd7vv7zqzlywdc4qykvdhyh8r3w")))) + (build-system cargo-build-system) + (arguments + `(#:cargo-inputs + (("rust-console" ,rust-console-0.15) + ("rust-crossterm" ,rust-crossterm-0.27) + ("rust-strum" ,rust-strum-0.25) + ("rust-strum-macros" ,rust-strum-macros-0.25) + ("rust-unicode-width" ,rust-unicode-width-0.1)) + #:cargo-development-inputs + (("rust-criterion" ,rust-criterion-0.5) + ("rust-pretty-assertions" ,rust-pretty-assertions-1) + ("rust-proptest" ,rust-proptest-1) + ("rust-rand" ,rust-rand-0.8) + ("rust-rstest" ,rust-rstest-0.18)))) + (home-page "https://github.com/nukesor/comfy-table") + (synopsis "Library for building tables with automatic content wrapping") + (description + "Comfy-tables is an utility for building tables with automatic content +wrapping.") + (license license:expat))) + (define-public rust-comfy-table-4 (package + (inherit rust-comfy-table-7) (name "rust-comfy-table") (version "4.1.1") (source @@ -11559,20 +11592,13 @@ (define-public rust-comfy-table-4 (file-name (string-append name "-" version ".tar.gz")) (sha256 (base32 "1wzk894p2s725cpdip5968ydb50zczsl34040j6zs8klhqz5ms8i")))) - (build-system cargo-build-system) (arguments `(#:skip-build? #t #:cargo-inputs (("rust-crossterm" ,rust-crossterm-0.20) ("rust-strum" ,rust-strum-0.21) ("rust-strum-macros" ,rust-strum-macros-0.21) - ("rust-unicode-width" ,rust-unicode-width-0.1)))) - (home-page "https://github.com/nukesor/comfy-table") - (synopsis "Library for building tables with automatic content wrapping") - (description - "Comfy-tables is an utility for building tables with automatic content -wrapping.") - (license license:expat))) + ("rust-unicode-width" ,rust-unicode-width-0.1)))))) (define-public rust-comfy-table-1 (package