From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id iDdjLcKu2mIEQAAAbAwnHQ (envelope-from ) for ; Fri, 22 Jul 2022 16:05:54 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id wKZILcKu2mL3DgAAauVa8A (envelope-from ) for ; Fri, 22 Jul 2022 16:05:54 +0200 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 502EBE479 for ; Fri, 22 Jul 2022 16:05:54 +0200 (CEST) Received: from localhost ([::1]:35274 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oEtHt-0001Kp-H0 for larch@yhetil.org; Fri, 22 Jul 2022 10:05:53 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:51102) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oEtFN-0007Mj-MJ for guix-patches@gnu.org; Fri, 22 Jul 2022 10:03:17 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:52259) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oEtF8-0005cp-0L for guix-patches@gnu.org; Fri, 22 Jul 2022 10:03:17 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oEtF7-0004pD-Sf for guix-patches@gnu.org; Fri, 22 Jul 2022 10:03:01 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#56701] [PATCH 01/19] gnu: python-args: Make it build with Python 3. Resent-From: Hartmut Goebel Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Fri, 22 Jul 2022 14:03:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 56701 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 56701@debbugs.gnu.org Received: via spool by 56701-submit@debbugs.gnu.org id=B56701.165849857318506 (code B ref 56701); Fri, 22 Jul 2022 14:03:01 +0000 Received: (at 56701) by debbugs.gnu.org; 22 Jul 2022 14:02:53 +0000 Received: from localhost ([127.0.0.1]:42001 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oEtEz-0004oO-6u for submit@debbugs.gnu.org; Fri, 22 Jul 2022 10:02:53 -0400 Received: from mout.kundenserver.de ([212.227.17.13]:44169) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oEtEx-0004o5-1R for 56701@debbugs.gnu.org; Fri, 22 Jul 2022 10:02:52 -0400 Received: from hermia.goebel-consult.de ([46.87.142.64]) by mrelayeu.kundenserver.de (mreue108 [212.227.15.183]) with ESMTPSA (Nemesis) id 1MeTsQ-1ngePv0YfE-00aTiY for <56701@debbugs.gnu.org>; Fri, 22 Jul 2022 16:02:43 +0200 Received: from thisbe.goebel-consult.de (hermia.goebel-consult.de [192.168.110.7]) by hermia.goebel-consult.de (Postfix) with ESMTP id 07DA065EE9; Fri, 22 Jul 2022 16:02:49 +0200 (CEST) From: Hartmut Goebel Date: Fri, 22 Jul 2022 16:02:21 +0200 Message-Id: <1f84612facf1468febbf17587a8f10db1b0874f3.1658498185.git.h.goebel@crazy-compilers.com> X-Mailer: git-send-email 2.30.4 In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Provags-ID: V03:K1:rQGZu3iC2mCCjjkua/74m5cDTjJHBAcbMdvk0suM7/ZASKiFopC P9yWXRRsbK0DDeUN/Vy0y+wUGww4MZzY4k37F3ns/PuB7AgjImab0LXN2fhpS253YFxTsqD PtefGAZUbOZFsV/yjz8pY7pZMyhAhM4ZY3QYADlKN742dW1Kk3V0DuGFEhDSlod3UI2TJ/t MwwFP4LspUBCtX8TuCscA== X-UI-Out-Filterresults: notjunk:1;V03:K0:1PM+47qX9dU=:bP37QWtdJHHi6aA5eerhU1 KQL+sxamzwlMOu04tvTa94rALP0AyKasDWaMTjs2aQ3fGC+/KtNgFoYkeAqY/XKhfMFH/IrN9 bGlbtVRqvn4plXcvqFI+AEd43ZkBhWIaDw88J6SRweRPbcxRvUr7uG27t3GjeAZ4++PNN2Xq3 EYfdWZqBYoI9skKAgjFHB0/CtTZhw/npfgBnvy3M2rcOO+gHR5C0o1rJWqTZk/uUUX+8DuT+0 MrcG3+Ei+sLdE/yGkv33pVagZqJRSmv3iFhsoH2MvKivf+C5/40QBIXeGfQasGst02TSGIXfv QP+KhQMZbNDjrIqPPlndtlE+7JEsupXu/dYm+mRWVzVrv2EAK4K48C8rFo8TKn/ZVImh7T4Y3 KhOxuEqjAouXkVdSRKDgOIrtE7gGZmZCsIO93gjX94ZzcPm8RGPB7EZh6TJS5VHDrjvXvbg9n JNPHDyNkTDVwPnwNDxyujJexWkuomvcAW0kxm/p+FFXu2RETH4qK2Jkvhjgu0V4rMrX9WOH/g urft9AYCKSm3GVW1WKw8i29xeZCbWsIlKzU81odREQMdzOzn9lFiNC4oBKHzsCOPNBikkaf6a VhxOI+WanPMV9NdCMgS+4A5K3/TOynXQzGzMh7Kcd2USp+hOxSQXijl9B4xo+6aD/jzy3M3s9 +CvamQv0bs1rjsqKTO/ftOeqltoHe9OzfAqnRfJ6iNIkBmg7tretNhHcTCbOGNA+ZsT228O3O GgcZWW998NqB/SmxHGuwhmPR+p9RjaNIin4vjdnV4nPZG2zwbEDSlRAmHME= 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-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1658498754; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: 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=N7WQkRxGuo64PlJtC4k0iddSETWtKB28gxmr+ayavq0=; b=O7PfI+HablPa9D5rJdgmGHIKlgcJd09NgKjYDXUP1NrCBbIECeMlEQbG2v6Pua/Cv7scNk BfNdpiY37lAoPMNbKoadJ47ZkJT7tme8JxQc6QgjCItA+y3IxINlz+BylgxFKJHeW3sFP1 tkQEHZHx9Tf9tdAh1W6H4CukKlIfcRK4nShD292DYth2mOmkyYbgsdlDWQbfBPtPcUNJU+ yoVqDO9nzSDv700Hw7dOc09+OEBoqaur058YFxZY4WWNvozVr6rP3yEkr+wPqbH80dlrmd nJfLtrBO5/ZkCz7uKX7Ge1dAPvhqAMh6mYure8KXUtAORBDuCVotmHr4hGSw5w== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1658498754; a=rsa-sha256; cv=none; b=Dl/oaPwJvM7WymgZRldJFqPWiuGw+Z9xq97RC+Kjtwy3y90AkPHJyAgK6/2vM7NsFbVyZe 27+mvgY+nXwZAfyJrNVzA/ig+StHGgYxKZCf+vwZbL3Ak7hn5E3cLneWhHhDt7RjXsxYsi Jx421TA5KTKsJzRshwuxxNv0NGu68/XnpvEWR7A1ANSJ0cbFR7P6qMSW8Q+z5BINd1p+cl 0l0X1XwtPHdxId8OJARLg98Gbe/QyA11vW1KvF3Wckczl9wVKSJffUSkYJbJmTL4vNc3eD 8zZpu3A7SqzJRCQG4D24pdh8t2iC8WEdSTbWcTMAAWT7XLsLByV5o2bAFfFuhg== 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: -0.43 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: 502EBE479 X-Spam-Score: -0.43 X-Migadu-Scanner: scn1.migadu.com X-TUID: MMXr/hIEKOCT This package is unmaintained, but still used. Patch the contained Python-2-code to make it build with Python 3. * gnu/packages/python-xyz.scm (python-args)[arguments]: Add phase patch-python2-code. --- gnu/packages/python-xyz.scm | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index 7f6bbd55be..9e6e38532b 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm @@ -19,7 +19,7 @@ ;;; Copyright © 2015, 2016 Chris Marusich ;;; Copyright © 2016 Danny Milosavljevic ;;; Copyright © 2016 Lukas Gradl -;;; Copyright © 2016, 2018, 2019, 2021 Hartmut Goebel +;;; Copyright © 2016, 2018, 2019, 2021, 2022 Hartmut Goebel ;;; Copyright © 2016 Daniel Pimentel ;;; Copyright © 2016 Sou Bunnbu ;;; Copyright © 2016, 2017 Troy Sankey @@ -14071,6 +14071,14 @@ files for use with Python.") (base32 "057qzi46h5dmxdqknsbrssn78lmqjlnm624iqdhrnpk26zcbi1d7")))) (build-system python-build-system) + (arguments + `(#:phases + (modify-phases %standard-phases + (add-after 'unpack 'patch-python2-code + (lambda _ + (substitute* "args.py" + (("isinstance\\(obj, basestring\\)") + "isinstance(obj, str)"))))))) (home-page "https://github.com/kennethreitz/args") (synopsis "Command-line argument parser") (description -- 2.30.4