From d98cf2b1b4ec5b4b5b317ddb7ef66613e533feea Mon Sep 17 00:00:00 2001 From: Sören Tempel Date: Fri, 16 Jan 2026 08:04:36 +0100 Subject: gnu: Add python-latexminted. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * gnu/packages/python-xyz.scm (python-latexminted): New variable. Signed-off-by: Ludovic Courtès --- gnu/packages/python-xyz.scm | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) (limited to 'gnu/packages') diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index 22bd99debe0..d482b9324c5 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm @@ -26813,6 +26813,32 @@ passed from LaTeX to Python.") (description "Lexer and codec to work with LaTeX code in Python.") (license license:expat))) +(define-public python-latexminted + (package + (name "python-latexminted") + ;; Version 0.6.0 is not compatible with our packaged python-pygments. + (version "0.5.1") + (source + (origin + (method url-fetch) + (uri (pypi-uri "latexminted" version)) + (sha256 + (base32 "12pj51nw7k3h6pv8r7k7382jwvs5wsd80cpkv222nkv07gnfg390")))) + (build-system pyproject-build-system) + (propagated-inputs (list python-latex2pydata + python-latexrestricted + python-pygments)) + (native-inputs (list texlive-kpathsea python-setuptools python-wheel)) + (home-page "https://github.com/gpoore/minted") + (synopsis "Python library for the LaTeX minted package") + (description "This Python package provides the Python side of the +@code{texlive-minted} LaTeX package. It performs syntax highlighting using the +@code{python-pygments} library. It also provides several code formatting and +manipulation features implemented in Python that would be difficult to perform +in LaTeX, such as dedenting code and extracting code snippets from source files +using regular expressions.") + (license license:lppl1.3c+))) + (define-public python-latexrestricted (package (name "python-latexrestricted") -- cgit v1.3