From patchwork Mon Jan 17 14:23:51 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tanguy LE CARROUR X-Patchwork-Id: 36517 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 CDD3827BBEA; Mon, 17 Jan 2022 14:57:05 +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.9 required=5.0 tests=BAYES_00,MAILING_LIST_MULTI, RCVD_IN_MSPIKE_H3,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 8983D27BBE9 for ; Mon, 17 Jan 2022 14:57:05 +0000 (GMT) Received: from localhost ([::1]:34962 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1n9TRQ-0000wG-Nu for patchwork@mira.cbaines.net; Mon, 17 Jan 2022 09:57:04 -0500 Received: from eggs.gnu.org ([209.51.188.92]:55814) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n9SwQ-0007Ts-LS for guix-patches@gnu.org; Mon, 17 Jan 2022 09:25:03 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:52665) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1n9SwQ-00043C-B9 for guix-patches@gnu.org; Mon, 17 Jan 2022 09:25:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1n9SwQ-0006qc-7Z for guix-patches@gnu.org; Mon, 17 Jan 2022 09:25:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#53046] [PATCH v3] gnu: Patch reference to basestring. References: <20220106102102.22512-1-tanguy@bioneland.org> In-Reply-To: <20220106102102.22512-1-tanguy@bioneland.org> Resent-From: Tanguy Le Carrour Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 17 Jan 2022 14:25:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 53046 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 53046@debbugs.gnu.org Cc: Tanguy Le Carrour , maximedevos@telenet.be Received: via spool by 53046-submit@debbugs.gnu.org id=B53046.164242945926260 (code B ref 53046); Mon, 17 Jan 2022 14:25:02 +0000 Received: (at 53046) by debbugs.gnu.org; 17 Jan 2022 14:24:19 +0000 Received: from localhost ([127.0.0.1]:45568 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n9Svj-0006pU-B0 for submit@debbugs.gnu.org; Mon, 17 Jan 2022 09:24:19 -0500 Received: from relay9-d.mail.gandi.net ([217.70.183.199]:41831) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n9Svg-0006pB-OA for 53046@debbugs.gnu.org; Mon, 17 Jan 2022 09:24:17 -0500 Received: from rafflesia.easter-eggs.fr (176-159-32-89.abo.bbox.fr [176.159.32.89]) (Authenticated sender: tanguy@bioneland.org) by mail.gandi.net (Postfix) with ESMTPA id 17BDFFF804; Mon, 17 Jan 2022 14:24:07 +0000 (UTC) From: Tanguy Le Carrour Date: Mon, 17 Jan 2022 15:23:51 +0100 Message-Id: <20220117142352.14713-1-tanguy@bioneland.org> X-Mailer: git-send-email 2.34.0 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" X-getmail-retrieved-from-mailbox: Patches * gnu/packages/python-xyz.scm (python-args): Use tho latest version from the git repository to get the test suite. * gnu/packages/python-xyz.scm (python-args)[arguments]: Replace reference to basestring with str. Invoke nosetests. * gnu/packages/python-xyz.scm (python-args)[native-inputs]: Add python-nose. --- gnu/packages/python-xyz.scm | 45 ++++++++++++++++++++++++------------- 1 file changed, 30 insertions(+), 15 deletions(-) diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index 80ce58400a..3b35cb2cba 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm @@ -13368,21 +13368,36 @@ (define-public python-icalendar (license license:bsd-2))) (define-public python-args - (package - (name "python-args") - (version "0.1.0") - (source (origin - (method url-fetch) - (uri (pypi-uri "args" version)) - (sha256 - (base32 - "057qzi46h5dmxdqknsbrssn78lmqjlnm624iqdhrnpk26zcbi1d7")))) - (build-system python-build-system) - (home-page "https://github.com/kennethreitz/args") - (synopsis "Command-line argument parser") - (description - "This library provides a Python module to parse command-line arguments.") - (license license:bsd-3))) + (let ((commit "9460f1a35eb3055e9e4de1f0a6932e0883c72d65") (revision "0")) + (package + (name "python-args") + (version (git-version "0.1.0" revision commit)) + (home-page "https://github.com/kennethreitz/args") + (source (origin + (method git-fetch) + (uri (git-reference + (url home-page) + (commit commit))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "1zfxpbp9vldqdrjmd0c6y3wisl35mx5v8zlyp3nhwpy1730wrc9j")))) + (build-system python-build-system) + (arguments + `(#:phases (modify-phases %standard-phases + (add-after 'unpack 'patch-args.py + (lambda _ + (substitute* "args.py" + (("basestring") "str")))) + (replace 'check + (lambda* (#:key tests? #:allow-other-keys) + (when tests? + (invoke "nosetests" "-v"))))))) + (native-inputs (list python-nose)) + (synopsis "Command-line argument parser") + (description + "This library provides a Python module to parse command-line arguments.") + (license license:bsd-3)))) (define-public python2-args (package-with-python2 python-args))