[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
24/26: gnu: python-blosc: Build with packaged blosc.
From: |
guix-commits |
Subject: |
24/26: gnu: python-blosc: Build with packaged blosc. |
Date: |
Wed, 14 Jun 2023 07:58:55 -0400 (EDT) |
efraim pushed a commit to branch master
in repository guix.
commit 071ee5856d00e22ea9e289e4a7cebe80a7871b06
Author: Efraim Flashner <efraim@flashner.co.il>
AuthorDate: Wed Jun 14 11:59:07 2023 +0300
gnu: python-blosc: Build with packaged blosc.
* gnu/packages/python-xyz.scm (python-blosc)[source]: Add snippet to
remove bundled sources.
[arguments]: Add a custom phase to set location of blosc.
[inputs]: Add c-blosc.
---
gnu/packages/python-xyz.scm | 14 ++++++++++++--
1 file changed, 12 insertions(+), 2 deletions(-)
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 8cacdd5796..3be2d0dae5 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -25237,13 +25237,23 @@ they use the same path.")
(uri (pypi-uri "blosc" version))
(sha256
(base32
- "1cm91c6r431yla2mbs4895bgiianjf30dfz14vvv99dslygd65jw"))))
+ "1cm91c6r431yla2mbs4895bgiianjf30dfz14vvv99dslygd65jw"))
+ (snippet
+ #~(begin (use-modules (guix build utils))
+ (delete-file-recursively "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 '(#:tests? #f))
+ (arguments
+ (list #:tests? #f
+ #:phases
+ #~(modify-phases %standard-phases
+ (add-after 'unpack 'find-blosc
+ (lambda* (#:key inputs #:allow-other-keys)
+ (setenv "BLOSC_DIR" #$(this-package-input "c-blosc")))))))
(propagated-inputs
(list python-numpy))
+ (inputs (list c-blosc))
(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
- 13/26: gnu: Add python-synphot., (continued)
- 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, 2023/06/14
- 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 <=