From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.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 cKgyBQM2KmLyGgEAgWs5BA (envelope-from ) for ; Thu, 10 Mar 2022 18:31:47 +0100 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id MOneOQI2KmIwQgAAG6o9tA (envelope-from ) for ; Thu, 10 Mar 2022 18:31:46 +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 5901C18D35 for ; Thu, 10 Mar 2022 18:31:46 +0100 (CET) Received: from localhost ([::1]:50632 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nSMdc-00045K-Kg for larch@yhetil.org; Thu, 10 Mar 2022 12:31:44 -0500 Received: from eggs.gnu.org ([209.51.188.92]:34800) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nSMb0-0006Bc-Ta for guix-patches@gnu.org; Thu, 10 Mar 2022 12:29:02 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:41527) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nSMb0-0005Cv-JW for guix-patches@gnu.org; Thu, 10 Mar 2022 12:29:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nSMb0-0001Yn-AT for guix-patches@gnu.org; Thu, 10 Mar 2022 12:29:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#53046] [PATCH v4] gnu: python-args: 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: Thu, 10 Mar 2022 17:29: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, maximedevos@telenet.be Cc: Tanguy Le Carrour Received: via spool by 53046-submit@debbugs.gnu.org id=B53046.16469333105935 (code B ref 53046); Thu, 10 Mar 2022 17:29:02 +0000 Received: (at 53046) by debbugs.gnu.org; 10 Mar 2022 17:28:30 +0000 Received: from localhost ([127.0.0.1]:35421 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nSMaT-0001Xf-Qx for submit@debbugs.gnu.org; Thu, 10 Mar 2022 12:28:30 -0500 Received: from relay10.mail.gandi.net ([217.70.178.230]:52663) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nSMaR-0001XQ-Qr for 53046@debbugs.gnu.org; Thu, 10 Mar 2022 12:28:28 -0500 Received: (Authenticated sender: tanguy@bioneland.org) by mail.gandi.net (Postfix) with ESMTPSA id 1A809240007; Thu, 10 Mar 2022 17:28:20 +0000 (UTC) From: Tanguy Le Carrour Date: Thu, 10 Mar 2022 18:28:08 +0100 Message-Id: <20220310172808.23485-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=1646933506; 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=X4c6XOwH/SSrP2kcDhoGo9xZqvyqX/fxuSZWjnD92uE=; b=NZEMHxIlWOFfkKq0wrtOqcfhRJ5Cf42aHLiAuNqCH09VSYRLD1FbkoD3Am96HqLzbst0gu a57opOHdA87/FYG4UeJDqBjlobUtAxS94+Y2DjuSHnrmFDm7d2juQJn9eXq1PypcLMYogy H6RMCq+fTCybT0u540LeeusgofgFqFNoQBEJeuUgYzu4IUPpQtkllG2QhCQOcCZT2S5CB1 6/fBtcDuO5zhybvctbUk6osB7iFPpBKgUG0zoLai1Ve68wUqLi0Rhdec2RT0nHpnUDTc45 PtNKDUYYXLV5mK1OjjYGFKV0ymyXjUF6stIOEjj4x13JR1ltBgVv6YK4itzasw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1646933506; a=rsa-sha256; cv=none; b=svhnP0IghW+Xz5yxFwrfWT1+4AlYt9/xRNoWZcoaJJGqGiOJlK6gHrNPRCA2qJW6eckFnL tYgUU35hudU1Zm1BumZXrVS9q0VTStILBEPghLFKZH7NUORZ7UVk1Ji0huAFMuFYV5H5L0 1RKKW9O0dxwZMo0rsVOZEP0s5U1cc2u9uRLI5SeNw6VhbGMIs2ZAJZ8XAhJFuyx6PvSSZw iUa+tMxYjBYQ1uGB1cDIUDqZ95i8Es99FOr6c7QK534SRWMYmVchGQvT3swK/06Q3BVUOw T7sRVvUidWS49izF2jeJmfmC1HTC1pcVf86Lrt3TJk8zFGqFKQl5dH0ZTP1JHA== 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: -2.50 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: 5901C18D35 X-Spam-Score: -2.50 X-Migadu-Scanner: scn0.migadu.com X-TUID: AlQ1xvw3qCUc Hi Maxime, I **totally** forgot about this one! Seems like no one is using it. `python2-args` also builds. But no package seems to depend on it anyway. Regards, Tanguy * gnu/packages/python-xyz.scm (python-args)[source]: Use the latest version from the git repository to get the test suite. [home-page]: Update URL. [native-inputs]: Add python-nose. [arguments]: Replace reference to basestring with str. Invoke nosetests. --- 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 5c003e3c1a..b8798fa671 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm @@ -13638,21 +13638,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-archive/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