~ruther/guix-local

7fb9188499adaeae51ebb033ded201e875e1d41e — Ricardo Wurmus 1 year, 3 months ago a21cadd
gnu: python-scanpy: Patch anndata version check.

* gnu/packages/bioinformatics.scm (python-scanpy)[arguments]: Add phase
'patch-version-check.

Change-Id: I0d2262197ae05c785fc65bd22e8052764434cab3
1 files changed, 10 insertions(+), 0 deletions(-)

M gnu/packages/bioinformatics.scm
M gnu/packages/bioinformatics.scm => gnu/packages/bioinformatics.scm +10 -0
@@ 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)))