From patchwork Tue Mar 21 08:16:38 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sergey Trofimov X-Patchwork-Id: 48497 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 AD1FE16F42; Tue, 21 Mar 2023 08:17:29 +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=-1.8 required=5.0 tests=DKIM_INVALID,DKIM_SIGNED, MAILING_LIST_MULTI,RCVD_IN_MSPIKE_H2,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 AA4FD16EC7 for ; Tue, 21 Mar 2023 08:17:28 +0000 (GMT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1peXB7-0002gG-5k; Tue, 21 Mar 2023 04:17:09 -0400 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 1peXB0-0002fD-8t for guix-patches@gnu.org; Tue, 21 Mar 2023 04:17:02 -0400 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 1peXAz-0003tT-Up for guix-patches@gnu.org; Tue, 21 Mar 2023 04:17:01 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1peXAz-0000Ml-PY for guix-patches@gnu.org; Tue, 21 Mar 2023 04:17:01 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#62310] [PATCH v2 2/4] gnu: Add go-github-com-schollz-progressbar-v3. Resent-From: Sergey Trofimov Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Tue, 21 Mar 2023 08:17:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 62310 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 62310@debbugs.gnu.org Cc: Sergey Trofimov Received: via spool by 62310-submit@debbugs.gnu.org id=B62310.16793865921333 (code B ref 62310); Tue, 21 Mar 2023 08:17:01 +0000 Received: (at 62310) by debbugs.gnu.org; 21 Mar 2023 08:16:32 +0000 Received: from localhost ([127.0.0.1]:57530 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1peXAV-0000LO-2Z for submit@debbugs.gnu.org; Tue, 21 Mar 2023 04:16:31 -0400 Received: from mail-ed1-f41.google.com ([209.85.208.41]:44860) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1peXAT-0000LB-8b for 62310@debbugs.gnu.org; Tue, 21 Mar 2023 04:16:30 -0400 Received: by mail-ed1-f41.google.com with SMTP id eh3so56324374edb.11 for <62310@debbugs.gnu.org>; Tue, 21 Mar 2023 01:16:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sarg.org.ru; s=google; t=1679386583; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=VF6NwiWfi9t4UAbFZdyqkl8seDtSMP/P7ISmIqog6Sk=; b=VJXxy4WGCV6ONql6ulz4mja3fXPDPMtjCr8k5Fmcdr/oAe2oSElKU2cxSL+5zmaaf6 e2pEmRVFKQRbBwl4TktrdG2TjgIQeM/35yWnoUgZkubO2TkuZVvyFJJD+q9odHu4OYGc xEMvQAulg56KkhqklYoo7JJzWznUZNbeO6tLo= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1679386583; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=VF6NwiWfi9t4UAbFZdyqkl8seDtSMP/P7ISmIqog6Sk=; b=vPxwu7jUQmDYHx/XZIZlNx0ySMM3mSy4TtU+7aWUNfeU6Anuy5xDOFnuzkv/dILGe3 WGLnA32EMftEPib+m9ssiX8+jyzMy00kIqxhvVBMpmZbbBdKjKyymh5S42qp5GSeGN3F 2230gGDbSeoabGtTCN7x9G+zsLZVLOxf2mhCEJqT9DqMw3q+jIvLF3qouPpx/+P130JG qO8AevVHBpFlbJp4nFPw+juSrIGsWn1c4cOS5n8cODBqR6rP5BdF+P9GS1bIvNtsVGC8 tN4xX14QQ+bbFnv20PqNSY1GECD5IXWm194pMeL5nEng8P6ew6fjugFkYdlPJ/2c5mWU SUcA== X-Gm-Message-State: AO0yUKUlrzhs8OvfYo/poUiv5xkJFsTX09/mlAFnhPpcT+dIyUrCsPBu hTKbhcgIeBnbqJvlroJKAh39+h8Yr/d1Qh8/77/Glw== X-Google-Smtp-Source: AK7set9Ook2s/xc+orQzXAKasVpqzYdE1gNOoY5kC5FuFoSYnUDRsWLhtya+m9PExvtl4llTryIQkA== X-Received: by 2002:aa7:dd44:0:b0:4fd:2346:7225 with SMTP id o4-20020aa7dd44000000b004fd23467225mr2091679edw.34.1679386583069; Tue, 21 Mar 2023 01:16:23 -0700 (PDT) Received: from localhost ([95.168.147.255]) by smtp.gmail.com with ESMTPSA id r3-20020a50aac3000000b004fccef39ec9sm5943181edc.70.2023.03.21.01.16.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 21 Mar 2023 01:16:22 -0700 (PDT) From: Sergey Trofimov Date: Tue, 21 Mar 2023 09:16:38 +0100 Message-Id: <20230321081640.16012-1-sarg@sarg.org.ru> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230321080457.12236-1-sarg@sarg.org.ru> References: <20230321080457.12236-1-sarg@sarg.org.ru> 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/golang.scm (go-github-com-schollz-progressbar-v3): New variable. --- gnu/packages/golang.scm | 41 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index 3ac4863e85..8f0e202d71 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -11326,6 +11326,47 @@ (define-public go-github-com-mitchellh-colorstring "Colorstring provides functions for colorizing strings for terminal output.") (license license:expat))) +(define-public go-github-com-schollz-progressbar-v3 + (package + (name "go-github-com-schollz-progressbar-v3") + (version "3.13.1") + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/schollz/progressbar") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "1hjahr5r52i7w6iyvl3rpzr46iignhfdh4694fl7m2b4gkaw9gd6")))) + (build-system go-build-system) + (arguments + (list #:import-path "github.com/schollz/progressbar/v3" + #:phases + #~(modify-phases %standard-phases + (replace 'check + (lambda* (#:key tests? import-path #:allow-other-keys) + (when tests? + ;; tests in the full suite require internet access + (invoke "go" "test" "-test.short" import-path)) + #t))))) + (propagated-inputs + (list go-golang-org-x-term + go-github-com-stretchr-testify + go-github-com-mitchellh-colorstring + go-github-com-mattn-go-runewidth + go-github-com-mattn-go-isatty + go-github-com-davecgh-go-spew)) + (home-page "https://github.com/schollz/progressbar") + (synopsis "Simple CLI progress bar") + (description + "This package provides a very simple thread-safe progress bar. The +@code{progressbar} implements an @code{io.Writer} so it can automatically detect the +number of bytes written to a stream, so you can use it as a progressbar for an +@code{io.Reader}. When progressbar length is undetermined a customizable spinner is +shown.") + (license license:expat))) + (define-public go-git-sr-ht-emersion-go-scfg (package (name "go-git-sr-ht-emersion-go-scfg")