mirror of
https://codeberg.org/guix/guix.git
synced 2025-10-02 02:15:12 +00:00
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:
parent
c4bcb5db49
commit
8b9c9051ba
1 changed files with 14 additions and 12 deletions
|
@ -23473,14 +23473,14 @@ tool).")
|
||||||
(define-public python-numcodecs
|
(define-public python-numcodecs
|
||||||
(package
|
(package
|
||||||
(name "python-numcodecs")
|
(name "python-numcodecs")
|
||||||
(version "0.6.4")
|
(version "0.10.2")
|
||||||
(source
|
(source
|
||||||
(origin
|
(origin
|
||||||
(method url-fetch)
|
(method url-fetch)
|
||||||
(uri (pypi-uri "numcodecs" version))
|
(uri (pypi-uri "numcodecs" version))
|
||||||
(sha256
|
(sha256
|
||||||
(base32
|
(base32
|
||||||
"0kbfr8pl3x9glsypbq8hzim003f16ml1b1cvgrh4w1sdvgal6j7g"))
|
"1i2rvm1f23dapcf6w3mj4877jzq5f24bhfa0fafbv1nr7xmqr0r2"))
|
||||||
(modules '((guix build utils)))
|
(modules '((guix build utils)))
|
||||||
(snippet
|
(snippet
|
||||||
'(begin
|
'(begin
|
||||||
|
@ -23490,11 +23490,11 @@ tool).")
|
||||||
"numcodecs/lz4.c"
|
"numcodecs/lz4.c"
|
||||||
"numcodecs/vlen.c"
|
"numcodecs/vlen.c"
|
||||||
"numcodecs/zstd.c"))))))
|
"numcodecs/zstd.c"))))))
|
||||||
(build-system python-build-system)
|
(build-system pyproject-build-system)
|
||||||
(arguments
|
(arguments
|
||||||
`(#:tests? #false ; TODO: unclear why numcodecs.* are not found
|
(list
|
||||||
#:phases
|
#:phases
|
||||||
(modify-phases %standard-phases
|
'(modify-phases %standard-phases
|
||||||
(add-after 'unpack 'disable-avx2
|
(add-after 'unpack 'disable-avx2
|
||||||
(lambda _
|
(lambda _
|
||||||
(setenv "DISABLE_NUMCODECS_AVX2" "1")))
|
(setenv "DISABLE_NUMCODECS_AVX2" "1")))
|
||||||
|
@ -23511,16 +23511,18 @@ tool).")
|
||||||
"'numcodecs.lz4', libraries=['lz4'], ")
|
"'numcodecs.lz4', libraries=['lz4'], ")
|
||||||
(("'numcodecs.blosc',")
|
(("'numcodecs.blosc',")
|
||||||
"'numcodecs.blosc', libraries=['blosc'], "))))
|
"'numcodecs.blosc', libraries=['blosc'], "))))
|
||||||
(replace 'check
|
(add-before 'check 'build-extensions
|
||||||
(lambda* (#:key tests? inputs outputs #:allow-other-keys)
|
(lambda _
|
||||||
(when tests?
|
;; Cython extensions have to be built before running the tests.
|
||||||
(add-installed-pythonpath inputs outputs)
|
(invoke "python" "setup.py" "build_ext" "--inplace"))))))
|
||||||
(invoke "pytest" "-vv")))))))
|
|
||||||
(inputs
|
(inputs
|
||||||
(list c-blosc lz4 zlib
|
(list c-blosc lz4 zlib
|
||||||
`(,zstd "lib")))
|
`(,zstd "lib")))
|
||||||
(propagated-inputs
|
(propagated-inputs
|
||||||
(list python-numpy python-msgpack))
|
(list python-entrypoints
|
||||||
|
python-numpy
|
||||||
|
python-msgpack
|
||||||
|
python-typing-extensions-next))
|
||||||
(native-inputs
|
(native-inputs
|
||||||
(list python-cython python-pytest python-setuptools-scm))
|
(list python-cython python-pytest python-setuptools-scm))
|
||||||
(home-page "https://github.com/zarr-developers/numcodecs")
|
(home-page "https://github.com/zarr-developers/numcodecs")
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue