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.
This commit is contained in:
Efraim Flashner 2023-06-14 11:59:07 +03:00
parent 339be9dad5
commit 071ee5856d
No known key found for this signature in database
GPG key ID: 41AAE7DCCA3D8351

View file

@ -25237,13 +25237,23 @@ (define-public python-blosc
(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