[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
02/04: gnu: python-numcodecs: Update to 0.10.2.
From: |
guix-commits |
Subject: |
02/04: gnu: python-numcodecs: Update to 0.10.2. |
Date: |
Mon, 12 Dec 2022 18:01:00 -0500 (EST) |
rekado pushed a commit to branch master
in repository guix.
commit 8b9c9051ba798572577cef474085cc88adb73ae4
Author: Ricardo Wurmus <rekado@elephly.net>
AuthorDate: Mon Dec 12 23:45:52 2022 +0100
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.
---
gnu/packages/python-xyz.scm | 26 ++++++++++++++------------
1 file changed, 14 insertions(+), 12 deletions(-)
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index bb25c35caf..ef3043f09c 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -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")