gnu: python-m2r: Adjust for Python 3.10.

* gnu/packages/python-xyz.scm (python-m2r)[source](modules, snippet): New
fields.
This commit is contained in:
Marius Bakke 2022-08-12 23:39:13 +02:00
parent c87700e691
commit 06db41651c
No known key found for this signature in database
GPG key ID: A2A06DF2A33A54FA

View file

@ -19093,7 +19093,15 @@ (define-public python-m2r
(uri (pypi-uri "m2r" version))
(sha256
(base32
"16gdm8i06jjmlpvckpfmlkr4693dh0vs192vgsqn84fsdkbbm45z"))))
"16gdm8i06jjmlpvckpfmlkr4693dh0vs192vgsqn84fsdkbbm45z"))
(modules '((guix build utils)))
(snippet
;; Adjust test regex for Python 3.10 compatibility.
;; Taken from upstream pull request:
;; https://github.com/miyakogi/m2r/pull/62
'(substitute* "tests/test_cli.py"
(("self.assertIn\\('optional arguments:', message\\)")
"self.assertRegex(message, r'option(s|al arguments):')")))))
(build-system python-build-system)
(propagated-inputs
(list python-docutils python-mistune))