From 504e62144539ac68c0f64f10dee872b47f088a26 Mon Sep 17 00:00:00 2001 From: Efraim Flashner Date: Tue, 5 Dec 2023 13:40:49 +0200 Subject: [PATCH] gnu: python-gpy: Adjust for newer python. * gnu/packages/python-science.scm (python-gpy)[source]: Add snippet to adjust python module imports. Change-Id: I0772febb97d75e0a0caa331913c9e7453d11e70d --- gnu/packages/python-science.scm | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/gnu/packages/python-science.scm b/gnu/packages/python-science.scm index 604ef6d08e..1b7ae663eb 100644 --- a/gnu/packages/python-science.scm +++ b/gnu/packages/python-science.scm @@ -1872,7 +1872,11 @@ (define-public python-gpy (uri (pypi-uri "GPy" version)) (sha256 (base32 - "1yx65ajrmqp02ykclhlb0n8s3bx5r0xj075swwwigiqaippr7dx2")))) + "1yx65ajrmqp02ykclhlb0n8s3bx5r0xj075swwwigiqaippr7dx2")) + (snippet + #~(begin (use-modules (guix build utils)) + (substitute* "GPy/models/state_space_main.py" + (("collections\\.Iterable") "collections.abc.Iterable")))))) (build-system python-build-system) (arguments `(#:phases (modify-phases %standard-phases