diff options
| author | Po-Chuan Hsieh <sunpoet@FreeBSD.org> | 2026-01-15 11:34:57 +0000 |
|---|---|---|
| committer | Po-Chuan Hsieh <sunpoet@FreeBSD.org> | 2026-01-15 11:53:03 +0000 |
| commit | 321eef1f6bb48d7ad134cbfea99b47d46365c72c (patch) | |
| tree | 7b20942253bc82a27fcf70719f53b61b1c919dc9 | |
| parent | 76c3581c32d2aa8c87c720f9503033a039cf89d3 (diff) | |
devel/py-ipython-pygments-lexers: Add py-ipython-pygments-lexers 1.1.1
A Pygments plugin for IPython code & console sessions
IPython is an interactive Python shell. Among other features, it adds some
special convenience syntax, including %magics, !shell commands and help?. This
package contains lexers for these, to use with the Pygments syntax highlighting
package.
- The ipython lexer should be used where only input code is highlighted
- The ipythonconsole lexer works for an IPython session, including code,
prompts, output and tracebacks.
These lexers were previously part of IPython itself (in IPython.lib.lexers), but
have now been moved to a separate package.
| -rw-r--r-- | devel/Makefile | 1 | ||||
| -rw-r--r-- | devel/py-ipython-pygments-lexers/Makefile | 23 | ||||
| -rw-r--r-- | devel/py-ipython-pygments-lexers/distinfo | 3 | ||||
| -rw-r--r-- | devel/py-ipython-pygments-lexers/pkg-descr | 12 |
4 files changed, 39 insertions, 0 deletions
diff --git a/devel/Makefile b/devel/Makefile index 1ae3ef102cc9..2cccc7c1b375 100644 --- a/devel/Makefile +++ b/devel/Makefile @@ -5099,6 +5099,7 @@ SUBDIR += py-ipykernel SUBDIR += py-ipympl SUBDIR += py-ipyparallel + SUBDIR += py-ipython-pygments-lexers SUBDIR += py-ipython_genutils SUBDIR += py-ipywidgets SUBDIR += py-iso8601 diff --git a/devel/py-ipython-pygments-lexers/Makefile b/devel/py-ipython-pygments-lexers/Makefile new file mode 100644 index 000000000000..a0925417ef82 --- /dev/null +++ b/devel/py-ipython-pygments-lexers/Makefile @@ -0,0 +1,23 @@ +PORTNAME= ipython-pygments-lexers +PORTVERSION= 1.1.1 +CATEGORIES= devel python +MASTER_SITES= PYPI +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} +DISTNAME= ipython_pygments_lexers-${PORTVERSION} + +MAINTAINER= sunpoet@FreeBSD.org +COMMENT= Define a variety of Pygments lexers for highlighting IPython code +WWW= https://github.com/ipython/ipython-pygments-lexers + +LICENSE= BSD3CLAUSE +LICENSE_FILE= ${WRKSRC}/LICENSE + +BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}flit-core>=3.2<4:devel/py-flit-core@${PY_FLAVOR} +RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pygments>=0:textproc/py-pygments@${PY_FLAVOR} + +USES= python +USE_PYTHON= autoplist concurrent pep517 + +NO_ARCH= yes + +.include <bsd.port.mk> diff --git a/devel/py-ipython-pygments-lexers/distinfo b/devel/py-ipython-pygments-lexers/distinfo new file mode 100644 index 000000000000..c8b65c5b283d --- /dev/null +++ b/devel/py-ipython-pygments-lexers/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1767157561 +SHA256 (ipython_pygments_lexers-1.1.1.tar.gz) = 09c0138009e56b6854f9535736f4171d855c8c08a563a0dcd8022f78355c7e81 +SIZE (ipython_pygments_lexers-1.1.1.tar.gz) = 8393 diff --git a/devel/py-ipython-pygments-lexers/pkg-descr b/devel/py-ipython-pygments-lexers/pkg-descr new file mode 100644 index 000000000000..aa8199a425bf --- /dev/null +++ b/devel/py-ipython-pygments-lexers/pkg-descr @@ -0,0 +1,12 @@ +A Pygments plugin for IPython code & console sessions + +IPython is an interactive Python shell. Among other features, it adds some +special convenience syntax, including %magics, !shell commands and help?. This +package contains lexers for these, to use with the Pygments syntax highlighting +package. +- The ipython lexer should be used where only input code is highlighted +- The ipythonconsole lexer works for an IPython session, including code, + prompts, output and tracebacks. + +These lexers were previously part of IPython itself (in IPython.lib.lexers), but +have now been moved to a separate package. |
