diff options
| author | Ricardo Wurmus <rekado@elephly.net> | 2025-01-09 21:57:05 +0100 |
|---|---|---|
| committer | Ricardo Wurmus <rekado@elephly.net> | 2025-01-20 21:37:40 +0100 |
| commit | 7fb9188499adaeae51ebb033ded201e875e1d41e (patch) | |
| tree | 0bcb86247cc96bd008d1a0efc60ad16b389cc0b1 /gnu | |
| parent | a21caddfcd164fd8c05d692a24787661896cc2a3 (diff) | |
gnu: python-scanpy: Patch anndata version check.
* gnu/packages/bioinformatics.scm (python-scanpy)[arguments]: Add phase
'patch-version-check.
Change-Id: I0d2262197ae05c785fc65bd22e8052764434cab3
Diffstat (limited to 'gnu')
| -rw-r--r-- | gnu/packages/bioinformatics.scm | 10 |
1 files changed, 10 insertions, 0 deletions
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))) |
