[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
47/93: gnu: python-anndata: Update to 0.10.7.
From: |
guix-commits |
Subject: |
47/93: gnu: python-anndata: Update to 0.10.7. |
Date: |
Sun, 5 May 2024 16:44:54 -0400 (EDT) |
rekado pushed a commit to branch wip-python-team
in repository guix.
commit 24bf2329a4bca391f3f44cca31e1b4e1fd9b22e6
Author: Ricardo Wurmus <rekado@elephly.net>
AuthorDate: Tue Apr 30 23:37:33 2024 +0200
gnu: python-anndata: Update to 0.10.7.
* gnu/packages/python-xyz.scm (python-anndata): Update to 0.10.7.
[arguments]: Patch conftest.py; adjust tests; remove old patch for version
string; add phase 'set-numba-cache-dir.
[native-inputs]: Add python-awkward, python-dask, python-distributed,
python-hatchling, python-hatch-vcs, python-loompy, python-matplotlib,
python-pytest-doctestplus, and python-pytest-xdist.
[propagated-inputs]: Add python-array-api-compat and python-exceptiongroup.
Change-Id: I3099cbfbb1865743c75d32243be9e5a59df1507d
---
gnu/packages/python-xyz.scm | 38 +++++++++++++++++++++++++++++---------
1 file changed, 29 insertions(+), 9 deletions(-)
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 8f018cb512..b302a1eff1 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -180,6 +180,7 @@
#:use-module (gnu packages base)
#:use-module (gnu packages bash)
#:use-module (gnu packages bdw-gc)
+ #:use-module (gnu packages bioinformatics)
#:use-module (gnu packages build-tools)
#:use-module (gnu packages check)
#:use-module (gnu packages cmake)
@@ -27567,7 +27568,7 @@ N-dimensional arrays for Python.")
(define-public python-anndata
(package
(name "python-anndata")
- (version "0.8.0")
+ (version "0.10.7")
(source
(origin
;; The tarball from PyPi doesn't include tests.
@@ -27578,29 +27579,39 @@ N-dimensional arrays for Python.")
(file-name (git-file-name name version))
(sha256
(base32
- "0v7npqrg1rdm8jzw22a45c0mqrmsv05r3k88i3lhzi0pzzxca1i1"))))
+ "1i08rm1xnsnq12rjv4virgdx61bra1gsfagjdq0kcpz8npxqa0as"))))
(build-system pyproject-build-system)
(arguments
(list
#:test-flags
- '(list "-k" "not concatenation.rst")
+ '(list "-k" (string-append "not concatenation.rst"
+ ;; fixture 'mocker' not found
+ " and not test_consecutive_bool"))
#:phases
#~(modify-phases %standard-phases
;; Doctests require scanpy from (gnu packages bioinformatics)
(add-after 'unpack 'disable-doctests
(lambda _
+ (substitute* "conftest.py"
+ (("import pytest")
+ (string-append "import pytest\nimport _pytest\n"))
+ (("pytest.DoctestItem")
+ "_pytest.doctest.DoctestItem"))
(substitute* "pyproject.toml"
(("--doctest-modules") ""))))
(add-before 'build 'set-version
(lambda _
(setenv "SETUPTOOLS_SCM_PRETEND_VERSION" #$version)
- (substitute* "anndata/_metadata.py"
- (("__version__ =.*")
- (string-append "__version__ = \"" #$version "\"\n")))
;; ZIP does not support timestamps before 1980.
- (setenv "SOURCE_DATE_EPOCH" "315532800"))))))
+ (setenv "SOURCE_DATE_EPOCH" "315532800")))
+ ;; Numba needs a writable dir to cache functions.
+ (add-before 'check 'set-numba-cache-dir
+ (lambda _
+ (setenv "NUMBA_CACHE_DIR" "/tmp"))))))
(propagated-inputs
- (list python-h5py
+ (list python-array-api-compat
+ python-exceptiongroup ;only for Python <3.11
+ python-h5py
python-importlib-metadata
python-natsort
python-numcodecs
@@ -27610,9 +27621,18 @@ N-dimensional arrays for Python.")
python-scikit-learn
python-zarr))
(native-inputs
- (list python-boltons
+ (list python-awkward
+ python-boltons
+ python-dask
+ python-distributed
+ python-hatchling
+ python-hatch-vcs
python-joblib
+ python-loompy
+ python-matplotlib
python-pytest
+ python-pytest-doctestplus
+ python-pytest-xdist
python-toml
python-flit
python-setuptools-scm))
- 56/93: gnu: python-umap-learn: Update to 0.5.6., (continued)
- 56/93: gnu: python-umap-learn: Update to 0.5.6., guix-commits, 2024/05/05
- 80/93: gnu: python-statmake: Adjust tests and version checks., guix-commits, 2024/05/05
- 86/93: gnu: python-plotnine: Disable test because of harmless warning., guix-commits, 2024/05/05
- 89/93: gnu: python-pingouin: Update to 0.5.4., guix-commits, 2024/05/05
- 30/93: gnu: python-cython-3: Update to 3.0.8., guix-commits, 2024/05/05
- 33/93: gnu: python-tabulate: Update to 0.9.0., guix-commits, 2024/05/05
- 36/93: gnu: apache-arrow: Build with ORC., guix-commits, 2024/05/05
- 39/93: gnu: python-dask: Update to 2024.4.2., guix-commits, 2024/05/05
- 40/93: gnu: python-partd: Update to 1.4.1., guix-commits, 2024/05/05
- 45/93: gnu: Add python-awkward., guix-commits, 2024/05/05
- 47/93: gnu: python-anndata: Update to 0.10.7.,
guix-commits <=
- 48/93: gnu: python-biom-format: Untangle from python-scikit-bio., guix-commits, 2024/05/05
- 50/93: gnu: python-pandas-stubs: Update tests., guix-commits, 2024/05/05
- 54/93: gnu: python-dask: Disable all tokenize tests., guix-commits, 2024/05/05
- 62/93: gnu: tadbit: Update to 1.0.1-2.2838129., guix-commits, 2024/05/05
- 12/93: gnu: Add python-multiscale-spatial-image., guix-commits, 2024/05/05
- 16/93: gnu: Add python-fastcluster., guix-commits, 2024/05/05
- 23/93: gnu: python-plastid: Replace nose with pytest., guix-commits, 2024/05/05
- 76/93: gnu: Add python-termcolor-1., guix-commits, 2024/05/05
- 87/93: gnu: python-plotnine: Fix version string., guix-commits, 2024/05/05
- 93/93: gnu: python-graphtools: Fix tests., guix-commits, 2024/05/05