summaryrefslogtreecommitdiff
path: root/gnu/packages
diff options
context:
space:
mode:
authorNicolas Graves <ngraves@ngraves.fr>2025-11-02 02:18:58 +0100
committerAndreas Enge <andreas@enge.fr>2026-02-07 12:28:19 +0100
commit2d6d1d1ca4216045b3278bd196cc7e2d5a5d4066 (patch)
tree0b3053af90f589e3e42b92479dfc952070a08e4a /gnu/packages
parentf03ffef29925e8e04f5ec37b0a9eb6921157e563 (diff)
gnu: Add python-lxml-for-texlive.
* gnu/packages/xml.scm (python-lxml-for-texlive): New variable. Change-Id: I736960de9bcf5ccf403678ca626904d65e70cff7 Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com>
Diffstat (limited to 'gnu/packages')
-rw-r--r--gnu/packages/xml.scm42
1 files changed, 42 insertions, 0 deletions
diff --git a/gnu/packages/xml.scm b/gnu/packages/xml.scm
index 0a1f44329b4..d0f92bfbc9f 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.")
1929libxml2 and libxslt.") 1929libxml2 and libxslt.")
1930 (license license:bsd-3))) ; and a few more, see LICENSES.txt 1930 (license license:bsd-3))) ; and a few more, see LICENSES.txt
1931 1931
1932(define-public python-lxml-for-texlive
1933 (package
1934 (name "python-lxml-for-texlive")
1935 (version "6.0.1")
1936 (source
1937 (origin
1938 (method url-fetch)
1939 (uri (pypi-uri "lxml" version))
1940 (sha256
1941 (base32 "14064h0pxdsx36nhyjzrw0v16ygz977qf6l0ydnh5p97pwp8hfib"))))
1942 (build-system gnu-build-system)
1943 (arguments
1944 (list
1945 ;; Essentially a lighter copy of the former python-build-system.
1946 ;; Using it rather than pyproject-build-system allows to edit the latter
1947 ;; without a texlive + haskell world rebuild.
1948 #:test-target "test"
1949 #:phases
1950 #~(modify-phases %standard-phases
1951 (delete 'bootstrap)
1952 (delete 'configure)
1953 (replace 'build
1954 (lambda _
1955 (invoke "python" "./setup.py" "build")))
1956 (replace 'install
1957 (lambda _
1958 (invoke "python" "./setup.py" "install"
1959 (string-append "--prefix=" #$output) "--no-compile")
1960 (invoke "python" "-m" "compileall"
1961 "--invalidation-mode=unchecked-hash" #$output))))))
1962 (native-inputs
1963 (list python-wrapper python-setuptools-bootstrap))
1964 (inputs
1965 (list libxml2 libxslt))
1966 (home-page "https://lxml.de/")
1967 (synopsis "Python XML processing library")
1968 (description
1969 "The lxml XML toolkit is a Pythonic binding for the C libraries
1970libxml2 and libxslt. This variant is pinned to be updated less often than
1971@code{python-lxml}.")
1972 (license license:bsd-3)))
1973
1932(define-public python-lxml-4.9 1974(define-public python-lxml-4.9
1933 (hidden-package 1975 (hidden-package
1934 (package 1976 (package