From f2c6710129a05b60c433e9f6b9fdb31d38654d77 Mon Sep 17 00:00:00 2001 From: Efraim Flashner Date: Tue, 5 Dec 2023 13:28:41 +0200 Subject: 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 --- gnu/packages/databases.scm | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'gnu/packages/databases.scm') 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 -- cgit v1.2.3