guix_mirror_bot pushed a commit to branch python-team
in repository guix.

commit fe2ee9826e4425e66e372bb7facb6799d785639d
Author: Sharlatan Hellseher <[email protected]>
AuthorDate: Sat Nov 14 16:19:51 2026 +0000

    gnu: python-metacells: Update to 0.9.5-0.c5bd77a.
    
    * gnu/packages/bioinformatics.scm (python-metacells): Update to
    c5bd77a962f8ec9946779dd124b407bb9012c774 commit.
    [source]: Switch to git-fetch; <snippet>: Delete pybind11 git module.
    [phases]{pre-check}: Remove phase; add {remove-local-source}.
    [propagated-inputs]: Remove python-pandas; add python-importlib-metadata
    and python-pandas-2.
    [native-inputs]: Remove pybind11-2; add pybind11.
---
 gnu/packages/bioinformatics.scm | 34 ++++++++++++++++++++--------------
 1 file changed, 20 insertions(+), 14 deletions(-)

diff --git a/gnu/packages/bioinformatics.scm b/gnu/packages/bioinformatics.scm
index b14b1df94dc..53c12ae62e5 100644
--- a/gnu/packages/bioinformatics.scm
+++ b/gnu/packages/bioinformatics.scm
@@ -3239,15 +3239,22 @@ and gene expression visualization.")
 (define-public python-metacells
   (package
     (name "python-metacells")
-    (version "0.9.5")
+    ;; 0.9.5 (2024-09-26);
+    (properties '((commit . "c5bd77a962f8ec9946779dd124b407bb9012c774")
+                  (revision . "0")))
+    (version (git-version "0.9.5"
+                          (assoc-ref properties 'revision)
+                          (assoc-ref properties 'commit)))
     (source
      (origin
-       (method url-fetch)
-       (uri (pypi-uri "metacells" version))
+       (method git-fetch)
+       (uri (git-reference
+              (url "https://github.com/tanaylab/metacells";)
+              (commit (assoc-ref properties 'commit))))
+       (file-name (git-file-name name version))
        (sha256
-        (base32 "0rb1r8l1ypfmvd3lwlx7ksfbjvgpnybn1s84a8n9gcpz9yx2rhbs"))))
-    #;
-    (properties '((tunable? . #t)))
+        (base32 "0qh2gjsgy2r9qbccshrzdimmpbm21wpp9kwba2p1x97sl0lvj17z"))
+       (snippet #~(rmdir "pybind11"))))   ;remove git module
     (build-system pyproject-build-system)
     (arguments
      (list
@@ -3263,28 +3270,27 @@ and gene expression visualization.")
             (lambda _
               ;; Without this they pass -march=native to the compiler.
               (setenv "WHEEL" "1")))
-          (add-before 'check 'pre-check
-            (lambda _
-              ;; Numba needs a writable dir to cache functions.
-              (setenv "NUMBA_CACHE_DIR" "/tmp")
-              (delete-file-recursively "metacells")))
           (add-before 'sanity-check 'pre-sanity-check
             (lambda _
               ;; Numba needs a writable dir to cache functions.
-              (setenv "NUMBA_CACHE_DIR" "/tmp"))))))
+              (setenv "NUMBA_CACHE_DIR" "/tmp")))
+          (add-before 'check 'remove-local-source
+            (lambda _
+              (delete-file-recursively "metacells"))))))
     (propagated-inputs (list python-anndata
                              python-cvxpy
                              python-fastcluster
                              python-igraph
+                             python-importlib-metadata
                              python-numpy
-                             python-pandas
+                             python-pandas-2
                              python-psutil
                              python-pyyaml
                              python-scanpy
                              python-scipy
                              python-threadpoolctl
                              python-umap-learn))
-    (native-inputs (list pybind11-2 python-pytest python-setuptools))
+    (native-inputs (list pybind11 python-pytest python-setuptools))
     (home-page "https://github.com/tanaylab/metacells";)
     (synopsis "Single-cell RNA Sequencing Analysis")
     (description "The metacells package implements the improved metacell

Reply via email to