From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id YJ4RIi6H5WFwIwAAgWs5BA (envelope-from ) for ; Mon, 17 Jan 2022 16:11:42 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id sMNnHy6H5WFTKQAA9RJhRA (envelope-from ) for ; Mon, 17 Jan 2022 16:11:42 +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 53C574C733 for ; Mon, 17 Jan 2022 16:11:42 +0100 (CET) Received: from localhost ([::1]:33890 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1n9TfZ-0003I3-47 for larch@yhetil.org; Mon, 17 Jan 2022 10:11:41 -0500 Received: from eggs.gnu.org ([209.51.188.92]:40498) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n9SB1-0005Ib-3M for guix-patches@gnu.org; Mon, 17 Jan 2022 08:36:06 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:52562) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1n9SAz-00027s-Qm for guix-patches@gnu.org; Mon, 17 Jan 2022 08:36:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1n9SAz-0005Vu-M9 for guix-patches@gnu.org; Mon, 17 Jan 2022 08:36:01 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#53046] [PATCH v2] 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 13:36:01 +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.164242651621125 (code B ref 53046); Mon, 17 Jan 2022 13:36:01 +0000 Received: (at 53046) by debbugs.gnu.org; 17 Jan 2022 13:35:16 +0000 Received: from localhost ([127.0.0.1]:45465 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n9SAF-0005Uf-Vy for submit@debbugs.gnu.org; Mon, 17 Jan 2022 08:35:16 -0500 Received: from relay11.mail.gandi.net ([217.70.178.231]:40161) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n9SAB-0005UJ-9n for 53046@debbugs.gnu.org; Mon, 17 Jan 2022 08:35:14 -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 25286100009; Mon, 17 Jan 2022 13:35:03 +0000 (UTC) From: Tanguy Le Carrour Date: Mon, 17 Jan 2022 14:34:51 +0100 Message-Id: <20220117133451.9510-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=1642432302; 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=mOeQEVXxcAZF7gJyymnW5E6XO7kuiuS8Rl89xeM1ir4=; b=TWzT2NzyNgZgajooa6Y9tAw2KXSB4lRSdrLa2rRK87rl2xwJ2EiulWwp1zc5oW1zt7ZWwN mkqC7wo0qWUzA+1Ygc8wlPOfDbFxRoP8VQd4cDU4rh1HIh23/Aq3CKhmo1RWwdzXMIipXC 0gzCtGsLcJb8CI96bcOBGIOwZwdxHbX4cEljSADQNllu3HVIcsNG66BR+LUo2yYYoYZcAw 26rUfMFGb9lj+TNHPkWkERoRgekIlpTSwjiUcrrJOqNrG1LWBdNFoZwe1uqST/iEV3ppxN NJLGIXV0KYgomHqGYJ7OXJMi9kGlOJ9y/mzUgbNVlsYCLM3HW+u5p3JcFbavFQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1642432302; a=rsa-sha256; cv=none; b=IfuZNvQUX3HbxiiSTNvwNeshQaYIhap0NWNNTIG56zsMpEfhd9pikMvB1gKzbaGI6gzReL /oyTUIqeRWI2SJe0V/SztcMLk5XO0gHZEqLBUPeZALA5miC+LyS+FYl7vNFonfDvQoZKkX vMpjSZivD/nsctd1VD3DnuC17p0H2nAsmxK56tr92vacUeSzQSLcSI6wb16LVcf5kMIKTC 26nu5N55FtVR8PLoSywd6MmNdM+BZGlgfX/AJ//Swpl47HFmbwgWPJP6r5A7/udLwp3tQL kENbr/keSmMrTpckdaihY4gNa0zLeaCQxhn4eCrc1hEsZYmMJaWK17GzFiaMeg== 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: 53C574C733 X-Spam-Score: -1.72 X-Migadu-Scanner: scn1.migadu.com X-TUID: EfJPD5QSdCbj * 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 | 44 ++++++++++++++++++++++++------------- 1 file changed, 29 insertions(+), 15 deletions(-) diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index 80ce58400a..4f2e9cb73d 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm @@ -13368,21 +13368,35 @@ (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 _ + (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