Archived
1
0
Fork 0

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.
This commit is contained in:
Ricardo Wurmus 2022-01-31 15:39:46 +01:00
parent ad516f4009
commit f383aca408
No known key found for this signature in database
GPG key ID: 197A5888235FACAC

View file

@ -22728,7 +22728,7 @@ N-dimensional arrays for Python.")
(define-public python-anndata (define-public python-anndata
(package (package
(name "python-anndata") (name "python-anndata")
(version "0.7.6") (version "0.7.8")
(source (source
(origin (origin
;; The tarball from PyPi doesn't include tests. ;; The tarball from PyPi doesn't include tests.
@ -22739,7 +22739,7 @@ N-dimensional arrays for Python.")
(file-name (git-file-name name version)) (file-name (git-file-name name version))
(sha256 (sha256
(base32 (base32
"1q30bsfsq9xfqm8nmabg3bjh9gix3yng0170xiiyw1lin4xncf0q")))) "1rrr9xfdaf00ixj5gyym75bl78gkaj55yfw3wjhvx0pdwqpwp9py"))))
(build-system python-build-system) (build-system python-build-system)
(arguments (arguments
`(#:phases `(#:phases
@ -22754,6 +22754,9 @@ N-dimensional arrays for Python.")
(replace 'build (replace 'build
(lambda _ (lambda _
(setenv "SETUPTOOLS_SCM_PRETEND_VERSION" ,version) (setenv "SETUPTOOLS_SCM_PRETEND_VERSION" ,version)
(substitute* "anndata/_metadata.py"
(("__version__ =.*")
(string-append "__version__ = \"" ,version "\"\n")))
;; ZIP does not support timestamps before 1980. ;; ZIP does not support timestamps before 1980.
(setenv "SOURCE_DATE_EPOCH" "315532800") (setenv "SOURCE_DATE_EPOCH" "315532800")
(invoke "flit" "build"))) (invoke "flit" "build")))
@ -22765,8 +22768,7 @@ N-dimensional arrays for Python.")
(format #true wheel) (format #true wheel)
(invoke "python" "-m" "pip" "install" (invoke "python" "-m" "pip" "install"
wheel (string-append "--prefix=" out))) wheel (string-append "--prefix=" out)))
(find-files "dist" "\\.whl$"))) (find-files "dist" "\\.whl$"))))))))
#t)))))
(propagated-inputs (propagated-inputs
(list python-h5py (list python-h5py
python-importlib-metadata python-importlib-metadata
@ -22775,6 +22777,7 @@ N-dimensional arrays for Python.")
python-packaging python-packaging
python-pandas python-pandas
python-scipy python-scipy
python-xlrd-1
python-zarr)) python-zarr))
(native-inputs (native-inputs
(list python-joblib python-pytest python-toml python-flit (list python-joblib python-pytest python-toml python-flit