mirror of
https://git.savannah.gnu.org/git/guix.git
synced 2025-02-06 19:09:27 +01:00
gnu: python-blosc: Enable tests.
* gnu/packages/python-xyz.scm (python-blosc)[arguments]: Don't disable tests. Add custom 'check phase. [native-inputs]: Add cmake-minimal.
This commit is contained in:
parent
3573c82747
commit
9edf093e58
1 changed files with 7 additions and 5 deletions
|
@ -25242,19 +25242,21 @@ they use the same path.")
|
||||||
#~(begin (use-modules (guix build utils))
|
#~(begin (use-modules (guix build utils))
|
||||||
(delete-file-recursively "blosc/c-blosc")))))
|
(delete-file-recursively "blosc/c-blosc")))))
|
||||||
(build-system python-build-system)
|
(build-system python-build-system)
|
||||||
;; FIXME: all tests pass, but then this error is printed:
|
|
||||||
;; TypeError: calling <function run at 0x7ffff2568d90> returned None, not a test
|
|
||||||
(arguments
|
(arguments
|
||||||
(list #:tests? #f
|
(list #:phases
|
||||||
#:phases
|
|
||||||
#~(modify-phases %standard-phases
|
#~(modify-phases %standard-phases
|
||||||
(add-after 'unpack 'find-blosc
|
(add-after 'unpack 'find-blosc
|
||||||
(lambda* (#:key inputs #:allow-other-keys)
|
(lambda* (#:key inputs #:allow-other-keys)
|
||||||
(setenv "USE_SYSTEM_BLOSC" "1")
|
(setenv "USE_SYSTEM_BLOSC" "1")
|
||||||
(setenv "Blosc_ROOT" #$(this-package-input "c-blosc")))))))
|
(setenv "Blosc_ROOT" #$(this-package-input "c-blosc"))))
|
||||||
|
(replace 'check
|
||||||
|
(lambda* (#:key tests? #:allow-other-keys)
|
||||||
|
(when tests?
|
||||||
|
(invoke "python" "-m" "blosc.test")))))))
|
||||||
(propagated-inputs
|
(propagated-inputs
|
||||||
(list python-scikit-build python-numpy))
|
(list python-scikit-build python-numpy))
|
||||||
(inputs (list c-blosc))
|
(inputs (list c-blosc))
|
||||||
|
(native-inputs (list cmake-minimal))
|
||||||
(home-page "https://github.com/blosc/python-blosc")
|
(home-page "https://github.com/blosc/python-blosc")
|
||||||
(synopsis "Python wrapper for the Blosc data compressor library")
|
(synopsis "Python wrapper for the Blosc data compressor library")
|
||||||
(description "Blosc is a high performance compressor optimized for binary
|
(description "Blosc is a high performance compressor optimized for binary
|
||||||
|
|
Loading…
Add table
Reference in a new issue