[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
02/10: gnu: python-grako: Adjust for newer python.
From: |
guix-commits |
Subject: |
02/10: gnu: python-grako: Adjust for newer python. |
Date: |
Tue, 5 Dec 2023 08:11:39 -0500 (EST) |
efraim pushed a commit to branch master
in repository guix.
commit cde11d1cd41aa2036d0759f29f308380e85588be
Author: Efraim Flashner <efraim@flashner.co.il>
AuthorDate: Tue Dec 5 13:26:04 2023 +0200
gnu: python-grako: Adjust for newer python.
* gnu/packages/python-xyz.scm (python-grako)[source]: Add snippet to
adjust python module imports.
Change-Id: Idcfabc378c510c1e848ff4a922f560c48b5bbed8
---
gnu/packages/python-xyz.scm | 15 +++++++++++----
1 file changed, 11 insertions(+), 4 deletions(-)
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 4af189b1aa..9fd62c0ff8 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -9795,11 +9795,18 @@ Python language binding specification.")
(source
(origin
(method url-fetch)
- (uri
- (pypi-uri "grako" version ".zip"))
+ (uri (pypi-uri "grako" version ".zip"))
(sha256
- (base32
- "0r63i68wcnv63rfjkasq1ah81frz61a6mzbcnaxhrkdpx84p7hzw"))))
+ (base32 "0r63i68wcnv63rfjkasq1ah81frz61a6mzbcnaxhrkdpx84p7hzw"))
+ (snippet
+ #~(begin (use-modules (guix build utils))
+ (substitute* "grako/grammars.py"
+ (("from collections import defaultdict, Mapping")
+ (string-append "from collections import defaultdict\n"
+ "from collections.abc import Mapping")))
+ (substitute* '("grako/util.py"
+ "grako/walkers.py")
+ (("collections\\.Mapping") "collections.abc.Mapping"))))))
(build-system python-build-system)
(arguments '(#:tests? #f)) ; Test file 'grako.ebnf' is missing from
archive.
(native-inputs
- branch master updated (6ab6c02aff -> c15a1cd88f), guix-commits, 2023/12/05
- 02/10: gnu: python-grako: Adjust for newer python.,
guix-commits <=
- 01/10: gnu: python-trezor-agent: Fix inputs., guix-commits, 2023/12/05
- 03/10: gnu: python-alchemy-mock: Adjust for newer python., guix-commits, 2023/12/05
- 04/10: gnu: python-internetarchive: Adjust for newer python., guix-commits, 2023/12/05
- 05/10: gnu: python-imgviz: Adjust for newer python., guix-commits, 2023/12/05
- 06/10: gnu: python-gpy: Adjust for newer python., guix-commits, 2023/12/05
- 07/10: gnu: python-osc: Adjust for newer python., guix-commits, 2023/12/05
- 09/10: gnu: python-schedule: Adjust for newer python., guix-commits, 2023/12/05
- 08/10: gnu: python-pyscss: Adjust for newer python., guix-commits, 2023/12/05
- 10/10: gnu: python-setuptools-lint: Add missing input., guix-commits, 2023/12/05