[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
03/15: gnu: python-libxml2: Move definition closer to its inherited orig
From: |
guix-commits |
Subject: |
03/15: gnu: python-libxml2: Move definition closer to its inherited origin. |
Date: |
Mon, 27 Jun 2022 17:50:01 -0400 (EDT) |
mbakke pushed a commit to branch core-updates
in repository guix.
commit e51c78d5605da114389cb992666829b1f3d82da6
Author: Marius Bakke <marius@gnu.org>
AuthorDate: Mon Jun 27 20:35:48 2022 +0200
gnu: python-libxml2: Move definition closer to its inherited origin.
* gnu/packages/xml.scm (python-libxml2): Move package definition after the
libxml2 variants.
---
gnu/packages/xml.scm | 59 ++++++++++++++++++++++++++--------------------------
1 file changed, 30 insertions(+), 29 deletions(-)
diff --git a/gnu/packages/xml.scm b/gnu/packages/xml.scm
index 9435e21d92..0e0d714a1c 100644
--- a/gnu/packages/xml.scm
+++ b/gnu/packages/xml.scm
@@ -181,6 +181,7 @@ binary extension of XML for the purpose of storing and
manipulating data in a
hierarchical form with variable field lengths.")
(license license:lgpl2.1)))
+;; Note: Remember to check python-libxml2 when updating this package.
(define-public libxml2
(package
(name "libxml2")
@@ -251,6 +252,35 @@ project (but it is usable outside of the Gnome platform).")
provides an @code{--xpath0} option to @command{xmllint} that enables it
to output XPath results with a null delimiter.")))
+(define-public python-libxml2
+ (package/inherit libxml2
+ (name "python-libxml2")
+ (source (origin
+ (inherit (package-source libxml2))
+ (patches
+ (append (search-patches "python-libxml2-utf8.patch")
+ (origin-patches (package-source libxml2))))))
+ (build-system python-build-system)
+ (outputs '("out"))
+ (arguments
+ `(;; XXX: Tests are specified in 'Makefile.am', but not in 'setup.py'.
+ #:tests? #f
+ #:phases
+ (modify-phases %standard-phases
+ (add-before
+ 'build 'configure
+ (lambda* (#:key inputs #:allow-other-keys)
+ (chdir "python")
+ (let ((glibc (assoc-ref inputs ,(if (%current-target-system)
+ "cross-libc" "libc")))
+ (libxml2 (assoc-ref inputs "libxml2")))
+ (substitute* "setup.py"
+ ;; For libxml2 headers.
+ (("/opt/include")
+ (string-append libxml2 "/include")))))))))
+ (inputs `(("libxml2" ,libxml2)))
+ (synopsis "Python bindings for the libxml2 library")))
+
(define-public libxlsxwriter
(package
(name "libxlsxwriter")
@@ -293,35 +323,6 @@ formulas and hyperlinks to multiple worksheets in an Excel
2007+ XLSX file.")
(license (list license:bsd-2
license:public-domain)))) ; third_party/md5
-(define-public python-libxml2
- (package/inherit libxml2
- (name "python-libxml2")
- (source (origin
- (inherit (package-source libxml2))
- (patches
- (append (search-patches "python-libxml2-utf8.patch")
- (origin-patches (package-source libxml2))))))
- (build-system python-build-system)
- (outputs '("out"))
- (arguments
- `(;; XXX: Tests are specified in 'Makefile.am', but not in 'setup.py'.
- #:tests? #f
- #:phases
- (modify-phases %standard-phases
- (add-before
- 'build 'configure
- (lambda* (#:key inputs #:allow-other-keys)
- (chdir "python")
- (let ((glibc (assoc-ref inputs ,(if (%current-target-system)
- "cross-libc" "libc")))
- (libxml2 (assoc-ref inputs "libxml2")))
- (substitute* "setup.py"
- ;; For libxml2 headers.
- (("/opt/include")
- (string-append libxml2 "/include")))))))))
- (inputs `(("libxml2" ,libxml2)))
- (synopsis "Python bindings for the libxml2 library")))
-
(define-public libxslt
(package
(name "libxslt")
- branch core-updates updated (1e39cc6481 -> 0b0750e831), guix-commits, 2022/06/27
- 01/15: gnu: ruby-sqlite3: Update to 1.4.4., guix-commits, 2022/06/27
- 03/15: gnu: python-libxml2: Move definition closer to its inherited origin.,
guix-commits <=
- 04/15: gnu: python-libxml2: Remove input labels., guix-commits, 2022/06/27
- 09/15: gnu: doxygen: Use new style., guix-commits, 2022/06/27
- 12/15: gnu: libjpeg-turbo: Build with cmake-minimal., guix-commits, 2022/06/27
- 05/15: gnu: icu4c: Update to 71.1., guix-commits, 2022/06/27
- 07/15: gnu: harfbuzz: Remove input labels., guix-commits, 2022/06/27
- 13/15: gnu: CMake: Remove input labels., guix-commits, 2022/06/27
- 15/15: gnu: CMake: Update to 3.23.2., guix-commits, 2022/06/27
- 10/15: gnu: jsoncpp: Build with Meson., guix-commits, 2022/06/27
- 14/15: gnu: CMake: Use G-expressions., guix-commits, 2022/06/27
- 02/15: gnu: python-libxml2: Fix build failure., guix-commits, 2022/06/27