guix_mirror_bot pushed a commit to branch python-team
in repository guix.

commit 1215b739b625b7670d2ff66a0dfa67fc3e31fa57
Author: Nicolas Graves <[email protected]>
AuthorDate: Sun Nov 2 02:18:58 2025 +0100

    gnu: Add python-lxml-for-texlive.
    
    * gnu/packages/xml.scm (python-lxml-for-texlive): New variable.
    
    Change-Id: I736960de9bcf5ccf403678ca626904d65e70cff7
    Signed-off-by: Sharlatan Hellseher <[email protected]>
---
 gnu/packages/xml.scm | 42 ++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 42 insertions(+)

diff --git a/gnu/packages/xml.scm b/gnu/packages/xml.scm
index cdbee7a116..0aaa8d6245 100644
--- a/gnu/packages/xml.scm
+++ b/gnu/packages/xml.scm
@@ -1929,6 +1929,48 @@ because lxml.etree already has its own implementation of 
XPath 1.0.")
 libxml2 and libxslt.")
     (license license:bsd-3))) ; and a few more, see LICENSES.txt
 
+(define-public python-lxml-for-texlive
+  (package
+    (name "python-lxml-for-texlive")
+    (version "6.0.1")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (pypi-uri "lxml" version))
+       (sha256
+        (base32 "14064h0pxdsx36nhyjzrw0v16ygz977qf6l0ydnh5p97pwp8hfib"))))
+    (build-system gnu-build-system)
+    (arguments
+     (list
+      ;; Essentially a lighter copy of the former python-build-system.
+      ;; Using it rather than pyproject-build-system allows to edit the latter
+      ;; without a texlive + haskell world rebuild.
+      #:test-target "test"
+      #:phases
+      #~(modify-phases %standard-phases
+          (delete 'bootstrap)
+          (delete 'configure)
+          (replace 'build
+            (lambda _
+              (invoke "python" "./setup.py" "build")))
+          (replace 'install
+            (lambda _
+              (invoke "python" "./setup.py" "install"
+                      (string-append "--prefix=" #$output) "--no-compile")
+              (invoke "python" "-m" "compileall"
+                      "--invalidation-mode=unchecked-hash" #$output))))))
+    (native-inputs
+     (list python-wrapper python-setuptools-bootstrap))
+    (inputs
+     (list libxml2 libxslt))
+    (home-page "https://lxml.de/";)
+    (synopsis "Python XML processing library")
+    (description
+     "The lxml XML toolkit is a Pythonic binding for the C libraries
+libxml2 and libxslt.  This variant is pinned to be updated less often than
+@code{python-lxml}.")
+    (license license:bsd-3)))
+
 (define-public python-lxml-4.9
   (hidden-package
    (package

Reply via email to