From patchwork Sat Sep 11 19:33:08 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Xinglu Chen X-Patchwork-Id: 32762 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 0575C27BBE3; Sat, 11 Sep 2021 20:34:10 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, MAILING_LIST_MULTI,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,T_DKIM_INVALID, URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.2 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 602D427BBE1 for ; Sat, 11 Sep 2021 20:34:09 +0100 (BST) Received: from localhost ([::1]:36082 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mP8lM-0001q3-HA for patchwork@mira.cbaines.net; Sat, 11 Sep 2021 15:34:08 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:53002) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mP8lG-0001pk-Nb for guix-patches@gnu.org; Sat, 11 Sep 2021 15:34:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:58136) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mP8lG-00082F-GW for guix-patches@gnu.org; Sat, 11 Sep 2021 15:34:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mP8lG-00030v-75 for guix-patches@gnu.org; Sat, 11 Sep 2021 15:34:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#50505] [PATCH 01/12] gnu: Add python-cloup. Resent-From: Xinglu Chen Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sat, 11 Sep 2021 19:34:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 50505 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 50505@debbugs.gnu.org Cc: Daniel =?utf-8?q?Mei=C3=9Fner?= X-Debbugs-Original-To: Daniel =?utf-8?q?Mei=C3=9Fner?= via Guix-patches via , 50505@debbugs.gnu.org Received: via spool by submit@debbugs.gnu.org id=B.163138880711542 (code B ref -1); Sat, 11 Sep 2021 19:34:02 +0000 Received: (at submit) by debbugs.gnu.org; 11 Sep 2021 19:33:27 +0000 Received: from localhost ([127.0.0.1]:41449 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mP8kc-000302-MT for submit@debbugs.gnu.org; Sat, 11 Sep 2021 15:33:26 -0400 Received: from lists.gnu.org ([209.51.188.17]:39490) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mP8kb-0002zo-Ck for submit@debbugs.gnu.org; Sat, 11 Sep 2021 15:33:21 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:52952) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mP8kb-0001p1-5x for guix-patches@gnu.org; Sat, 11 Sep 2021 15:33:21 -0400 Received: from h87-96-130-155.cust.a3fiber.se ([87.96.130.155]:39156 helo=mail.yoctocell.xyz) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mP8kZ-0007Lb-1c for guix-patches@gnu.org; Sat, 11 Sep 2021 15:33:20 -0400 From: Xinglu Chen DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=yoctocell.xyz; s=mail; t=1631388790; bh=9+HCOdsvRVmPyT8Hi0nHkf7vo2xYXpgw58x6Vr+4wgg=; h=From:To:Cc:Subject:In-Reply-To:References:Date; b=TKzQLu3lag137Tpze9MiEk6Aq1svazpO8AsSYcsQA0TvwJd3RfDjOtifxr2xvxp01 K+fu17igryf9QO8e+qMQWJyIMFCcN1w5ROoAJ0TI+xdolg5yUfJFkhCwqsROxV8WqV Asq6UBvT8qOP9FStUrvG0fiPow3KEv/D45tPmrjA= In-Reply-To: <20210910112502.6466-1-daniel.meissner-i4k@ruhr-uni-bochum.de> References: <20210910112231.6411-1-daniel.meissner-i4k@ruhr-uni-bochum.de> <20210910112502.6466-1-daniel.meissner-i4k@ruhr-uni-bochum.de> Date: Sat, 11 Sep 2021 21:33:08 +0200 Message-ID: <87zgsiucuj.fsf@yoctocell.xyz> MIME-Version: 1.0 Received-SPF: pass client-ip=87.96.130.155; envelope-from=public@yoctocell.xyz; helo=mail.yoctocell.xyz X-Spam_score_int: 14 X-Spam_score: 1.4 X-Spam_bar: + X-Spam_report: (1.4 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FROM_SUSPICIOUS_NTLD=0.498, PDS_OTHER_BAD_TLD=1.997, RDNS_DYNAMIC=0.982, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action 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" X-getmail-retrieved-from-mailbox: Patches On Fri, Sep 10 2021, Daniel Meißner via Guix-patches via wrote: > * gnu/packages/python-xyz.scm (python-cloup): New variable. > --- > gnu/packages/python-science.scm | 1 + > gnu/packages/python-xyz.scm | 31 +++++++++++++++++++++++++++++++ > 2 files changed, 32 insertions(+) > > diff --git a/gnu/packages/python-science.scm b/gnu/packages/python-science.scm > index 738b504e3b..d3730fadcc 100644 > --- a/gnu/packages/python-science.scm > +++ b/gnu/packages/python-science.scm > @@ -14,6 +14,7 @@ > ;;; Copyright © 2021 Roel Janssen > ;;; Copyright © 2021 Paul Garlick > ;;; Copyright © 2021 Arun Isaac > +;;; Copyright © 2021 Daniel Meißner > ;;; > ;;; This file is part of GNU Guix. > ;;; > diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm > index e98eec19bc..6c7ab10216 100644 > --- a/gnu/packages/python-xyz.scm > +++ b/gnu/packages/python-xyz.scm > @@ -3308,6 +3308,37 @@ with sensible defaults out of the box.") > (base32 "0njsm0wn31l21bi118g5825ma5sa3rwn7v2x4wjd7yiiahkri337")))) > (arguments `()))) > > +(define-public python-cloup > + (package > + (name "python-cloup") > + (version "0.11.0") > + (source > + (origin > + (method url-fetch) > + (uri (pypi-uri "cloup" version)) > + (sha256 > + (base32 > + "07kxw81bml137w9bfmwkjbdzbldkk1k1lws82wffz9244pp7k8ib")))) > + (build-system python-build-system) > + (arguments > + '(#:phases (modify-phases %standard-phases > + ;; test phase fails with "error: invalid command pytest" > + (delete 'check)))) The tests run after applying the attached patch. I also took the liberty of fixing the formatting of the synopsis and description. :-) > + (propagated-inputs > + `(("python-click" ,python-click))) > + (native-inputs > + `(("python-setuptools" ,python-setuptools) > + ("python-setuptools-scm" ,python-setuptools-scm/next) > + ("python-pytest" ,python-pytest))) > + (home-page "https://github.com/janLuke/cloup") > + (synopsis "Extension library for python-click") > + (description > + "Cloup — originally from \"Click + option groups\" — enriches Click with > +several features that make it more expressive and configurable: option groups, > +constraints, subcommand aliases, subcommands sections and a themeable > +HelpFormatter.") > + (license license:bsd-3))) > + > (define-public python-vcversioner > (package > (name "python-vcversioner") > -- > 2.33.0 From 574d6706ee0472b2e5e10a42af9bf9ded017a3f1 Mon Sep 17 00:00:00 2001 Message-Id: <574d6706ee0472b2e5e10a42af9bf9ded017a3f1.1631388580.git.public@yoctocell.xyz> From: =?UTF-8?q?Daniel=20Mei=C3=9Fner=20via=20Guix-patches=20via?= Date: Fri, 10 Sep 2021 13:24:51 +0200 Subject: [PATCH] gnu: Add python-cloup. * gnu/packages/python-xyz.scm (python-cloup): New variable. Co-authored-by: Xinglu Chen --- gnu/packages/python-science.scm | 1 + gnu/packages/python-xyz.scm | 35 +++++++++++++++++++++++++++++++++ 2 files changed, 36 insertions(+) diff --git a/gnu/packages/python-science.scm b/gnu/packages/python-science.scm index 738b504e3b..d3730fadcc 100644 --- a/gnu/packages/python-science.scm +++ b/gnu/packages/python-science.scm @@ -14,6 +14,7 @@ ;;; Copyright © 2021 Roel Janssen ;;; Copyright © 2021 Paul Garlick ;;; Copyright © 2021 Arun Isaac +;;; Copyright © 2021 Daniel Meißner ;;; ;;; This file is part of GNU Guix. ;;; diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index 7c70829de9..2db7ccc0ee 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm @@ -3307,6 +3307,41 @@ with sensible defaults out of the box.") (base32 "0njsm0wn31l21bi118g5825ma5sa3rwn7v2x4wjd7yiiahkri337")))) (arguments `()))) +(define-public python-cloup + (package + (name "python-cloup") + (version "0.11.0") + (source + (origin + (method url-fetch) + (uri (pypi-uri "cloup" version)) + (sha256 + (base32 + "07kxw81bml137w9bfmwkjbdzbldkk1k1lws82wffz9244pp7k8ib")))) + (build-system python-build-system) + (arguments + '(#:phases + (modify-phases %standard-phases + (replace 'check + (lambda* (#:key inputs outputs tests? #:allow-other-keys) + (when tests? + (add-installed-pythonpath inputs outputs) + (invoke "python" "-m" "pytest"))))))) + (propagated-inputs + `(("python-click" ,python-click))) + (native-inputs + `(("python-setuptools" ,python-setuptools) + ("python-setuptools-scm" ,python-setuptools-scm/next) + ("python-pytest" ,python-pytest))) + (home-page "https://github.com/janLuke/cloup") + (synopsis "Extension library for @code{python-click}") + (description + "Cloup---originally from ``Click + option groups''---enriches +@code{python-click} with several features that make it more expressive and +configurable: option groups, constraints, subcommand aliases, subcommands +sections, and a themeable @code{HelpFormatter}.") + (license license:bsd-3))) + (define-public python-vcversioner (package (name "python-vcversioner") -- 2.33.0