gnu: python-libxml2: Remove input labels.

* gnu/packages/xml.scm (python-libxml2)[arguments]: Use G-expression.  Remove
iconv header substitution which is no longer needed.
[inputs]: Remove labels.
This commit is contained in:
Marius Bakke 2022-06-27 20:41:58 +02:00
parent e51c78d560
commit e437393b01
No known key found for this signature in database
GPG key ID: A2A06DF2A33A54FA

View file

@ -263,22 +263,22 @@ to output XPath results with a null delimiter.")))
(build-system python-build-system) (build-system python-build-system)
(outputs '("out")) (outputs '("out"))
(arguments (arguments
`(;; XXX: Tests are specified in 'Makefile.am', but not in 'setup.py'. (list
#:tests? #f ;; XXX: Tests are specified in 'Makefile.am', but not in 'setup.py'.
#:phases #:tests? #f
(modify-phases %standard-phases #:phases
(add-before #~(modify-phases %standard-phases
'build 'configure (add-before 'build 'configure
(lambda* (#:key inputs #:allow-other-keys) (lambda* (#:key inputs #:allow-other-keys)
(chdir "python") (chdir "python")
(let ((glibc (assoc-ref inputs ,(if (%current-target-system) (let ((libxml2-headers (search-input-directory
"cross-libc" "libc"))) inputs "include/libxml2")))
(libxml2 (assoc-ref inputs "libxml2"))) (substitute* "setup.py"
(substitute* "setup.py" ;; The build system ignores C_INCLUDE_PATH & co, so
;; For libxml2 headers. ;; provide the absolute directory name.
(("/opt/include") (("/opt/include")
(string-append libxml2 "/include"))))))))) (dirname libxml2-headers)))))))))
(inputs `(("libxml2" ,libxml2))) (inputs (list libxml2))
(synopsis "Python bindings for the libxml2 library"))) (synopsis "Python bindings for the libxml2 library")))
(define-public libxlsxwriter (define-public libxlsxwriter