gnu: python-numcodecs: Update to 0.10.2.

* gnu/packages/python-xyz.scm (python-numcodecs): Update to 0.10.2.
[build-system]: Use pyproject-build-system.
[arguments]: Enable tests; add phase 'build-extensions; remove custom 'check
phase.
[propagated-inputs]: Add python-entrypoints and python-typing-extensions-next.
This commit is contained in:
Ricardo Wurmus 2022-12-12 23:45:52 +01:00
parent c4bcb5db49
commit 8b9c9051ba
No known key found for this signature in database
GPG Key ID: 197A5888235FACAC

View File

@ -23473,14 +23473,14 @@ tool).")
(define-public python-numcodecs
(package
(name "python-numcodecs")
(version "0.6.4")
(version "0.10.2")
(source
(origin
(method url-fetch)
(uri (pypi-uri "numcodecs" version))
(sha256
(base32
"0kbfr8pl3x9glsypbq8hzim003f16ml1b1cvgrh4w1sdvgal6j7g"))
"1i2rvm1f23dapcf6w3mj4877jzq5f24bhfa0fafbv1nr7xmqr0r2"))
(modules '((guix build utils)))
(snippet
'(begin
@ -23490,11 +23490,11 @@ tool).")
"numcodecs/lz4.c"
"numcodecs/vlen.c"
"numcodecs/zstd.c"))))))
(build-system python-build-system)
(build-system pyproject-build-system)
(arguments
`(#:tests? #false ; TODO: unclear why numcodecs.* are not found
#:phases
(modify-phases %standard-phases
(list
#:phases
'(modify-phases %standard-phases
(add-after 'unpack 'disable-avx2
(lambda _
(setenv "DISABLE_NUMCODECS_AVX2" "1")))
@ -23511,16 +23511,18 @@ tool).")
"'numcodecs.lz4', libraries=['lz4'], ")
(("'numcodecs.blosc',")
"'numcodecs.blosc', libraries=['blosc'], "))))
(replace 'check
(lambda* (#:key tests? inputs outputs #:allow-other-keys)
(when tests?
(add-installed-pythonpath inputs outputs)
(invoke "pytest" "-vv")))))))
(add-before 'check 'build-extensions
(lambda _
;; Cython extensions have to be built before running the tests.
(invoke "python" "setup.py" "build_ext" "--inplace"))))))
(inputs
(list c-blosc lz4 zlib
`(,zstd "lib")))
(propagated-inputs
(list python-numpy python-msgpack))
(list python-entrypoints
python-numpy
python-msgpack
python-typing-extensions-next))
(native-inputs
(list python-cython python-pytest python-setuptools-scm))
(home-page "https://github.com/zarr-developers/numcodecs")