Subject: [bug#78736] [PATCH python-team] gnu: Add python-ipython-pygments-lexers.

From: Cayetano Santos <[email-masked]>
Date: Mon, 9 Jun 2025 22:29:46 +0200

* gnu/packages/python-xyz.scm (python-ipython-pygments-lexers): New variable.

Change-Id: Ibe541fa133d4ec4c47f8f3cbaab038776d81be60
---
 gnu/packages/python-xyz.scm | 23 +++++++++++++++++++++++
 1 file changed, 23 insertions(+)

diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index ebb3970c3a..8902016827 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -14630,6 +14630,29 @@ (define-public python-ipython-documentation
                   texlive-xetex
                   texlive-xindy))))))
 
+(define-public python-ipython-pygments-lexers
+  (package
+    (name "python-ipython-pygments-lexers")
+    (version "1.1.1")
+    (source
+     (origin
+       (method git-fetch)
+       (uri (git-reference
+             (url "https://github.com/ipython/ipython-pygments-lexers/")
+             (commit version)))
+       (file-name (git-file-name name version))
+       (sha256
+        (base32 "154vbpp9mkblsk1d0w8x8mybwgn5gz6mjgg77nqyn75ky0banrd7"))))
+    (build-system pyproject-build-system)
+    (propagated-inputs (list python-pygments))
+    (native-inputs (list python-flit-core python-pytest))
+    (home-page "https://github.com/ipython/ipython-pygments-lexers/")
+    (synopsis "Plugin for IPython code sessions")
+    (description
+     "This package defines a variety of Pygments lexers for highlighting IPython
+code.")
+    (license license:bsd-3)))
+
 (define-public python-uri-template
   (package
     (name "python-uri-template")

base-commit: 03ce76718c41b32d174713c945d269d6fcdd8bf1
-- 
2.49.0