mirror of
https://codeberg.org/guix/guix.git
synced 2025-10-02 02:15:12 +00:00
gnu: python-numcodecs: Update to 0.13.1.
* gnu/packages/python-xyz.scm (python-numcodecs): Update to 0.13.1. [source]: Update snippet. [arguments]: Update selected tests. [propagated-inputs]: Add python-coverage, python-google-crc32c, python-importlib-metadata, and python-numpydoc; remove python-entrypoints and python-typing-extensions. [native-inputs]: Add python-py-cpuinfo, python-pydata-sphinx-theme, python-pytest-cov, python-sphinx, and python-sphinx-issues. Change-Id: Ib2dfc457923c0a435a09ce6d7879090e641b095c
This commit is contained in:
parent
71327fc365
commit
9b13e95135
1 changed files with 22 additions and 20 deletions
|
@ -29205,15 +29205,16 @@ tool).")
|
||||||
(define-public python-numcodecs
|
(define-public python-numcodecs
|
||||||
(package
|
(package
|
||||||
(name "python-numcodecs")
|
(name "python-numcodecs")
|
||||||
;; XXX: Starting from 0.11.0 numcodecs requires NumPy 1.7 or higher.
|
(version "0.13.1")
|
||||||
(version "0.10.2")
|
;; python-zarr does not want versions 0.14.0 or 0.14.1.
|
||||||
|
;;(version "0.14.1")
|
||||||
(source
|
(source
|
||||||
(origin
|
(origin
|
||||||
(method url-fetch)
|
(method url-fetch)
|
||||||
(uri (pypi-uri "numcodecs" version))
|
(uri (pypi-uri "numcodecs" version))
|
||||||
(sha256
|
(sha256
|
||||||
(base32
|
(base32
|
||||||
"1i2rvm1f23dapcf6w3mj4877jzq5f24bhfa0fafbv1nr7xmqr0r2"))
|
"1g09fwhgmhmw66x5gzmzhm8yhgqki3gpfi0dkhx8z2gh3n43gkx3"))
|
||||||
(modules '((guix build utils)))
|
(modules '((guix build utils)))
|
||||||
(snippet
|
(snippet
|
||||||
'(begin
|
'(begin
|
||||||
|
@ -29224,22 +29225,13 @@ tool).")
|
||||||
(("os\\.name == 'posix'")
|
(("os\\.name == 'posix'")
|
||||||
(string-append "os.name + platform.machine() == 'posixx86_64' or"
|
(string-append "os.name + platform.machine() == 'posixx86_64' or"
|
||||||
" os.name + platform.machine() == 'posixx86'")))
|
" os.name + platform.machine() == 'posixx86'")))
|
||||||
(delete-file-recursively "c-blosc")
|
(delete-file-recursively "c-blosc")))))
|
||||||
(for-each delete-file '("numcodecs/_shuffle.c"
|
|
||||||
"numcodecs/blosc.c"
|
|
||||||
"numcodecs/compat_ext.c"
|
|
||||||
"numcodecs/lz4.c"
|
|
||||||
"numcodecs/vlen.c"
|
|
||||||
"numcodecs/zstd.c"))))))
|
|
||||||
(build-system pyproject-build-system)
|
(build-system pyproject-build-system)
|
||||||
(arguments
|
(arguments
|
||||||
(list
|
(list
|
||||||
#:test-flags
|
#:test-flags
|
||||||
;; Tests fail with error: ValueError: setting an array element with a
|
;; zarr isn't available, because it dependes on this package.
|
||||||
;; sequence. The requested array has an inhomogeneous shape after 1
|
'(list "-k" "not test_zarr3_import")
|
||||||
;; dimensions. The detected shape was (3,) + inhomogeneous part.
|
|
||||||
#~(list "--deselect=numcodecs/tests/test_json.py::test_non_numpy_inputs"
|
|
||||||
"--deselect=numcodecs/tests/test_msgpacks.py::test_non_numpy_inputs")
|
|
||||||
#:phases
|
#:phases
|
||||||
'(modify-phases %standard-phases
|
'(modify-phases %standard-phases
|
||||||
(add-after 'unpack 'disable-avx2
|
(add-after 'unpack 'disable-avx2
|
||||||
|
@ -29266,13 +29258,23 @@ tool).")
|
||||||
(list c-blosc lz4 zlib
|
(list c-blosc lz4 zlib
|
||||||
`(,zstd "lib")))
|
`(,zstd "lib")))
|
||||||
(propagated-inputs
|
(propagated-inputs
|
||||||
(list python-entrypoints
|
(list python-coverage
|
||||||
python-numpy
|
python-google-crc32c
|
||||||
|
python-importlib-metadata
|
||||||
python-msgpack
|
python-msgpack
|
||||||
python-typing-extensions))
|
python-numpy
|
||||||
|
python-numpydoc))
|
||||||
(native-inputs
|
(native-inputs
|
||||||
(list python-cython python-pytest python-setuptools-scm
|
(list python-cython
|
||||||
python-setuptools python-wheel))
|
python-py-cpuinfo
|
||||||
|
python-pydata-sphinx-theme
|
||||||
|
python-pytest
|
||||||
|
python-pytest-cov
|
||||||
|
python-setuptools
|
||||||
|
python-setuptools-scm ;for correct version
|
||||||
|
python-sphinx
|
||||||
|
python-sphinx-issues
|
||||||
|
python-wheel))
|
||||||
(home-page "https://github.com/zarr-developers/numcodecs")
|
(home-page "https://github.com/zarr-developers/numcodecs")
|
||||||
(synopsis "Buffer compression and transformation codecs")
|
(synopsis "Buffer compression and transformation codecs")
|
||||||
(description
|
(description
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue