rekado pushed a commit to branch python-team in repository guix. commit 5cfcdcd2931b39b0ff39613fb275f362b6fb70a1 Author: Ricardo Wurmus <rek...@elephly.net> AuthorDate: Thu Jan 9 21:57:05 2025 +0100
gnu: python-scanpy: Patch anndata version check. * gnu/packages/bioinformatics.scm (python-scanpy)[arguments]: Add phase 'patch-version-check. Change-Id: I0d2262197ae05c785fc65bd22e8052764434cab3 --- gnu/packages/bioinformatics.scm | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/gnu/packages/bioinformatics.scm b/gnu/packages/bioinformatics.scm index 60fa56d99d..a95f87a4f6 100644 --- a/gnu/packages/bioinformatics.scm +++ b/gnu/packages/bioinformatics.scm @@ -18836,6 +18836,16 @@ implementation differs in these ways: " and not test_clip")) #:phases #~(modify-phases %standard-phases + ;; XXX This should not be necessary, but I noticed while building + ;; python-metacells that the anndata version check fails, resulting + ;; in the wrong module name to be loaded from anndata. I cannot + ;; reproduce this in an interactive Python session. We patch this + ;; here to ensure that the appropriate module name is used. + (add-after 'unpack 'patch-version-check + (lambda _ + (substitute* "src/scanpy/_utils/__init__.py" + (("Version\\(anndata_version\\) >= Version\\(\"0.10.0\"\\):") + "True:")))) (add-after 'unpack 'pretend-version (lambda _ (setenv "SETUPTOOLS_SCM_PRETEND_VERSION" #$version)))