@@ -931,7 +931,7 @@ (define-public python-glymur
#:phases
#~(modify-phases %standard-phases
(add-after 'unpack 'patch-library-locations
- (lambda _
+ (lambda* (#:key inputs #:allow-other-keys)
;; XXX: It's a workaround for Python inability to find the
;; .so libraries with ctypes.util.find_library()
(substitute* '("glymur/config.py")
@@ -939,13 +939,13 @@ (define-public python-glymur
(string-append
"if libname == \"openjp2\":\n"
" path = \""
- #$(this-package-input "openjpeg") "/lib/libopenjp2.so\"\n"
+ (search-input-file inputs "/lib/libopenjp2.so") "\"\n"
" elif libname == \"tiff\":\n"
" path = \""
- #$(this-package-input "libtiff") "/lib/libtiff.so\"\n"
+ (search-input-file inputs "/lib/libtiff.so") "\"\n"
" elif libname == \"c\":\n"
" path = \""
- #$(this-package-input "glibc") "/lib/libc.so.6\"\n")))))
+ (search-input-file inputs "/lib/libc.so.6") "\"\n")))))
;; TODO: implement as a feature of python-build-system (PEP-621,
;; PEP-631, PEP-660)
(replace 'build
@@ -971,8 +971,7 @@ (define-public python-glymur
(list python-pypa-build python-pytest))
(inputs
(list openjpeg ; glymur/lib/openjp2.py
- libtiff ; glymur/lib/tiff.py
- glibc))
+ libtiff)) ; glymur/lib/tiff.py
(propagated-inputs
(list python-lxml
python-numpy