aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEfraim Flashner <efraim@flashner.co.il>2023-12-05 13:28:41 +0200
committerEfraim Flashner <efraim@flashner.co.il>2023-12-05 13:43:42 +0200
commitf2c6710129a05b60c433e9f6b9fdb31d38654d77 (patch)
tree86098339738f4e2526c5fd7f5e0fb03bbdd5ed13
parentcde11d1cd41aa2036d0759f29f308380e85588be (diff)
downloadguix-f2c6710129a05b60c433e9f6b9fdb31d38654d77.tar.gz
guix-f2c6710129a05b60c433e9f6b9fdb31d38654d77.zip
gnu: python-alchemy-mock: Adjust for newer python.
* gnu/packages/databases.scm (python-alchemy-mock)[source]: Add snippet to adjust python module imports. Change-Id: Id41dd77ff7cd243f8026ad416d12dc01bf68f467
-rw-r--r--gnu/packages/databases.scm6
1 files changed, 5 insertions, 1 deletions
diff --git a/gnu/packages/databases.scm b/gnu/packages/databases.scm
index f0ea100c3b..2ab982f333 100644
--- a/gnu/packages/databases.scm
+++ b/gnu/packages/databases.scm
@@ -3596,7 +3596,11 @@ You might also want to install the following optional dependencies:
(uri (pypi-uri "alchemy-mock" version))
(sha256
(base32
- "0ylxygl3bcdapzz529n8wgk7vx9gjwb3ism564ypkpd7dbsw653r"))))
+ "0ylxygl3bcdapzz529n8wgk7vx9gjwb3ism564ypkpd7dbsw653r"))
+ (snippet
+ #~(begin (use-modules (guix build utils))
+ (substitute* "alchemy_mock/comparison.py"
+ (("collections\\.Mapping") "collections.abc.Mapping"))))))
(build-system python-build-system)
(arguments
'(#:phases (modify-phases %standard-phases