From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id mHQfFb+D5WEChQEAgWs5BA (envelope-from ) for ; Mon, 17 Jan 2022 15:57:03 +0100 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id 2DJWEr+D5WF8xwAA9RJhRA (envelope-from ) for ; Mon, 17 Jan 2022 15:57:03 +0100 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id E48EC3C637 for ; Mon, 17 Jan 2022 15:57:02 +0100 (CET) Received: from localhost ([::1]:34962 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1n9TRO-0000wG-4U for larch@yhetil.org; Mon, 17 Jan 2022 09:57:02 -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 Content-Transfer-Encoding: 8bit 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+larch=yhetil.org@gnu.org Sender: "Guix-patches" X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1642431422; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post; bh=Z/y8cXilQfUKXEBdcC8+10BhQWw5JDqpuCxNxNoWhq4=; b=ezO20vzgIhBB4IDmjOPAC554PsB6MbS1u1JBuxpNcXGk1CAHaryd3J60gsyHRs59wtZY/O rbE+fibabYxbf6ar3hZVYPBg3P1y7Bd8VUn6m8xYlDMSfy8QuubdqwSl57xPLB9/UZ2aDK FZeuFUsaPmCvuNUVFVDtHTmyJb89pizGnqTWq8J0wuKwmNCAuKtmyf1YOuiK4tAio488IN EZTjLsPTUtH3qlxSsmgrqjyCow/3ln/b37BxPfrGWMZh5HLWGpKmOoiGPD9UtId9Ar0cjD jxZJr0K7bd4/UDbUiad/TlG3SIfmCt9S1onD1enS4d3r0HmSBRE3FycoGysycw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1642431422; a=rsa-sha256; cv=none; b=R50qmk4z5X1FrA9tyDO1mU8R0DBWdAd3NMi69sa/jX45QfyyqesWxXjZl3gGunV9G8zCUS kOr5o+gkDwJSvGn4hyWUH6K6ALgnxGq3m3uHtV+lpbD3Fuq5BDRKewbXIMn00eV2ePhg5w tV1gd+6gkho7Cg/vXHGZn4cC1pdU9yvzh4RyWOWmZ8Z9IUSMVE/ILds5s5IbSQqMYIUcpX aftkpVJLbu+L3on1yAvOMsJS+/I9HNTklrEbhmnEf2t5WhC77ADj0+XiwlKKTm4p/IN5qx kLv+vp89HpRza4xx8/Gyv5BWoM79KhT/+gFGdB0+thbSbe117XVA/yPYg5Xpsw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -1.72 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: E48EC3C637 X-Spam-Score: -1.72 X-Migadu-Scanner: scn1.migadu.com X-TUID: OpwfP2r1R7Bg * 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)) -- 2.34.0