[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
26/26: gnu: python-blosc: Enable tests.
From: |
guix-commits |
Subject: |
26/26: gnu: python-blosc: Enable tests. |
Date: |
Wed, 14 Jun 2023 07:58:55 -0400 (EDT) |
efraim pushed a commit to branch master
in repository guix.
commit 9edf093e58a9ebbf5e4c6cdc874fcbcdbdca635d
Author: Efraim Flashner <efraim@flashner.co.il>
AuthorDate: Wed Jun 14 12:09:25 2023 +0300
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.
---
gnu/packages/python-xyz.scm | 12 +++++++-----
1 file changed, 7 insertions(+), 5 deletions(-)
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 86665b0af4..65d9742f2d 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -25242,19 +25242,21 @@ they use the same path.")
#~(begin (use-modules (guix build utils))
(delete-file-recursively "blosc/c-blosc")))))
(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
- (list #:tests? #f
- #:phases
+ (list #:phases
#~(modify-phases %standard-phases
(add-after 'unpack 'find-blosc
(lambda* (#:key inputs #:allow-other-keys)
(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
(list python-scikit-build python-numpy))
(inputs (list c-blosc))
+ (native-inputs (list cmake-minimal))
(home-page "https://github.com/blosc/python-blosc")
(synopsis "Python wrapper for the Blosc data compressor library")
(description "Blosc is a high performance compressor optimized for binary
- 15/26: gnu: Add python-parsley., (continued)
- 15/26: gnu: Add python-parsley., guix-commits, 2023/06/14
- 16/26: gnu: Add python-crds., guix-commits, 2023/06/14
- 22/26: gnu: Add python-stcal., guix-commits, 2023/06/14
- 01/26: gnu: opencv: Fix building on riscv64-linux., guix-commits, 2023/06/14
- 07/26: gnu: Add python-rad., guix-commits, 2023/06/14
- 08/26: gnu: Add python-roman-datamodels., guix-commits, 2023/06/14
- 11/26: gnu: Add python-stsci-stimage., guix-commits, 2023/06/14
- 13/26: gnu: Add python-synphot., guix-commits, 2023/06/14
- 19/26: gnu: Add python-bayesicfitting., guix-commits, 2023/06/14
- 23/26: gnu: Add python-jwst., guix-commits, 2023/06/14
- 26/26: gnu: python-blosc: Enable tests.,
guix-commits <=
- 14/26: gnu: Add python-stsynphot., guix-commits, 2023/06/14
- 17/26: gnu: Add python-stdatamodels., guix-commits, 2023/06/14
- 18/26: gnu: Add python-stpipe., guix-commits, 2023/06/14
- 20/26: gnu: Add python-wiimatch., guix-commits, 2023/06/14
- 21/26: gnu: Add python-drizzle., guix-commits, 2023/06/14
- 25/26: gnu: python-blosc: Update to 1.11.1., guix-commits, 2023/06/14
- 24/26: gnu: python-blosc: Build with packaged blosc., guix-commits, 2023/06/14