rekado pushed a commit to branch master
in repository guix.
commit 7fb9188499adaeae51ebb033ded201e875e1d41e
Author: Ricardo Wurmus <[email protected]>
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 7e3f39bd57..c1d47a7e36 100644
--- a/gnu/packages/bioinformatics.scm
+++ b/gnu/packages/bioinformatics.scm
@@ -18906,6 +18906,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)))