[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#56701] [PATCH 01/19] gnu: python-args: Make it build with Python 3.
From: |
Hartmut Goebel |
Subject: |
[bug#56701] [PATCH 01/19] gnu: python-args: Make it build with Python 3. |
Date: |
Fri, 22 Jul 2022 16:02:21 +0200 |
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 <cmmarusich@gmail.com>
;;; Copyright © 2016 Danny Milosavljevic <dannym+a@scratchpost.org>
;;; Copyright © 2016 Lukas Gradl <lgradl@openmailbox.org>
-;;; Copyright © 2016, 2018, 2019, 2021 Hartmut Goebel
<h.goebel@crazy-compilers.com>
+;;; Copyright © 2016, 2018, 2019, 2021, 2022 Hartmut Goebel
<h.goebel@crazy-compilers.com>
;;; Copyright © 2016 Daniel Pimentel <d4n1@d4n1.org>
;;; Copyright © 2016 Sou Bunnbu <iyzsong@gmail.com>
;;; Copyright © 2016, 2017 Troy Sankey <sankeytms@gmail.com>
@@ -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
- [bug#56701] [PATCH 00/19] Update python-pyjwt and its dependent packages, Hartmut Goebel, 2022/07/22
- [bug#56701] [PATCH 02/19] gnu: Add python-requests-kerberos., Hartmut Goebel, 2022/07/22
- [bug#56701] [PATCH 01/19] gnu: python-args: Make it build with Python 3.,
Hartmut Goebel <=
- [bug#56701] [PATCH 03/19] gnu: Add python-dogpile.cache., Hartmut Goebel, 2022/07/22
- [bug#56701] [PATCH 04/19] gnu: Add python-statsd., Hartmut Goebel, 2022/07/22
- [bug#56701] [PATCH 05/19] gnu: Add python-os-service-types., Hartmut Goebel, 2022/07/22
- [bug#56701] [PATCH 18/19] gnu: python-pygithub: Update to 1.55., Hartmut Goebel, 2022/07/22
- [bug#56701] [PATCH 08/19] gnu: Add python-requestsexceptions., Hartmut Goebel, 2022/07/22
- [bug#56701] [PATCH 14/19] gnu: python-oslo.log: Update to 5.0.0., Hartmut Goebel, 2022/07/22
- [bug#56701] [PATCH 17/19] gnu: python-swiftclient: Update to 4.0.1., Hartmut Goebel, 2022/07/22
- [bug#56701] [PATCH 09/19] gnu: Add python-openstacksdk., Hartmut Goebel, 2022/07/22
- [bug#56701] [PATCH 19/19] gnu: conan: Update to 1.50.0., Hartmut Goebel, 2022/07/22
- [bug#56701] [PATCH 06/19] gnu: Add python-oslo.concurrency., Hartmut Goebel, 2022/07/22