From f383aca4086716b07f4e1f06df2aad4d7b796ebc Mon Sep 17 00:00:00 2001 From: Ricardo Wurmus Date: Mon, 31 Jan 2022 15:39:46 +0100 Subject: gnu: python-anndata: Update to 0.7.8. * gnu/packages/python-xyz.scm (python-anndata): Update to 0.7.8. [arguments]: Embed the appropriate version string instead of letting it try (and fail) to discover the correct string at load time. [propagated-inputs]: Add python-xlrd-1. --- gnu/packages/python-xyz.scm | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'gnu/packages') diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index 1f40f982ce..945f3319f1 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm @@ -22728,7 +22728,7 @@ (define-public python-zarr (define-public python-anndata (package (name "python-anndata") - (version "0.7.6") + (version "0.7.8") (source (origin ;; The tarball from PyPi doesn't include tests. @@ -22739,7 +22739,7 @@ (define-public python-anndata (file-name (git-file-name name version)) (sha256 (base32 - "1q30bsfsq9xfqm8nmabg3bjh9gix3yng0170xiiyw1lin4xncf0q")))) + "1rrr9xfdaf00ixj5gyym75bl78gkaj55yfw3wjhvx0pdwqpwp9py")))) (build-system python-build-system) (arguments `(#:phases @@ -22754,6 +22754,9 @@ (define-public python-anndata (replace 'build (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") (invoke "flit" "build"))) @@ -22765,8 +22768,7 @@ (define-public python-anndata (format #true wheel) (invoke "python" "-m" "pip" "install" wheel (string-append "--prefix=" out))) - (find-files "dist" "\\.whl$"))) - #t))))) + (find-files "dist" "\\.whl$")))))))) (propagated-inputs (list python-h5py python-importlib-metadata @@ -22775,6 +22777,7 @@ (define-public python-anndata python-packaging python-pandas python-scipy + python-xlrd-1 python-zarr)) (native-inputs (list python-joblib python-pytest python-toml python-flit -- cgit v1.2.3