guix_mirror_bot pushed a commit to branch master
in repository guix.

commit d98cf2b1b4ec5b4b5b317ddb7ef66613e533feea
Author: Sören Tempel <[email protected]>
AuthorDate: Fri Jan 16 08:04:36 2026 +0100

    gnu: Add python-latexminted.
    
    * gnu/packages/python-xyz.scm (python-latexminted): New variable.
    
    Signed-off-by: Ludovic Courtès <[email protected]>
---
 gnu/packages/python-xyz.scm | 26 ++++++++++++++++++++++++++
 1 file changed, 26 insertions(+)

diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 22bd99debe..d482b9324c 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")

Reply via email to