aboutsummaryrefslogtreecommitdiff
path: root/gnu
diff options
context:
space:
mode:
authorEfraim Flashner <efraim@flashner.co.il>2023-12-05 13:36:48 +0200
committerEfraim Flashner <efraim@flashner.co.il>2023-12-05 13:43:42 +0200
commit9d1055c4095cf591db3be7353d1360f3d2da61e2 (patch)
tree21056a0c4c380cec89aa9e94036f357b616dd7ef /gnu
parentf2c6710129a05b60c433e9f6b9fdb31d38654d77 (diff)
downloadguix-9d1055c4095cf591db3be7353d1360f3d2da61e2.tar.gz
guix-9d1055c4095cf591db3be7353d1360f3d2da61e2.zip
gnu: python-internetarchive: Adjust for newer python.
* gnu/packages/web.scm (python-internetarchive)[source]: Adjust snippet for change in python module imports. Change-Id: I523d022f3a56b31b58f80c1ce1ffabaef1f9b0e7
Diffstat (limited to 'gnu')
-rw-r--r--gnu/packages/web.scm5
1 files changed, 4 insertions, 1 deletions
diff --git a/gnu/packages/web.scm b/gnu/packages/web.scm
index 4a4252138b..cee3f18d7f 100644
--- a/gnu/packages/web.scm
+++ b/gnu/packages/web.scm
@@ -6697,7 +6697,10 @@ command-line arguments or read from stdin.")
(("^import re\n" line)
(string-append line "re._pattern_type = re.Pattern\n"))))
(find-files "." "\\.py$"))
- #t))))
+ ;; Mapping got moved to collections.abc
+ (substitute* "internetarchive/utils.py"
+ (("from collections import Mapping")
+ "from collections.abc import Mapping"))))))
(build-system python-build-system)
(arguments
`(#:phases