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
This commit is contained in:
parent
6ce45b4bbe
commit
cde11d1cd4
1 changed files with 11 additions and 4 deletions
|
@ -9795,11 +9795,18 @@ Python language binding specification.")
|
||||||
(source
|
(source
|
||||||
(origin
|
(origin
|
||||||
(method url-fetch)
|
(method url-fetch)
|
||||||
(uri
|
(uri (pypi-uri "grako" version ".zip"))
|
||||||
(pypi-uri "grako" version ".zip"))
|
|
||||||
(sha256
|
(sha256
|
||||||
(base32
|
(base32 "0r63i68wcnv63rfjkasq1ah81frz61a6mzbcnaxhrkdpx84p7hzw"))
|
||||||
"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)
|
(build-system python-build-system)
|
||||||
(arguments '(#:tests? #f)) ; Test file 'grako.ebnf' is missing from archive.
|
(arguments '(#:tests? #f)) ; Test file 'grako.ebnf' is missing from archive.
|
||||||
(native-inputs
|
(native-inputs
|
||||||
|
|
Reference in a new issue