git: 40991a18a2dd - main - textproc/py-nbsphinx: Add py-nbsphinx 0.8.6

Po-Chuan Hsieh sunpoet at FreeBSD.org
Sun Aug 8 14:58:11 UTC 2021


The branch main has been updated by sunpoet:

URL: https://cgit.FreeBSD.org/ports/commit/?id=40991a18a2dd010c381e2056fda2617297425f2a

commit 40991a18a2dd010c381e2056fda2617297425f2a
Author:     Po-Chuan Hsieh <sunpoet at FreeBSD.org>
AuthorDate: 2021-08-08 14:32:18 +0000
Commit:     Po-Chuan Hsieh <sunpoet at FreeBSD.org>
CommitDate: 2021-08-08 14:53:54 +0000

    textproc/py-nbsphinx: Add py-nbsphinx 0.8.6
    
    nbsphinx is a Sphinx extension that provides a source parser for *.ipynb files.
    Custom Sphinx directives are used to show Jupyter Notebook code cells (and of
    course their results) in both HTML and LaTeX output. Unevaluated notebooks --
    i.e. notebooks without stored output cells -- will be automatically executed
    during the Sphinx build process.
    
    WWW: https://github.com/spatialaudio/nbsphinx
---
 textproc/Makefile              |  1 +
 textproc/py-nbsphinx/Makefile  | 27 +++++++++++++++++++++++++++
 textproc/py-nbsphinx/distinfo  |  3 +++
 textproc/py-nbsphinx/pkg-descr |  7 +++++++
 4 files changed, 38 insertions(+)

diff --git a/textproc/Makefile b/textproc/Makefile
index fdc7c5a73667..7eedfbdab0e2 100644
--- a/textproc/Makefile
+++ b/textproc/Makefile
@@ -1340,6 +1340,7 @@
     SUBDIR += py-mkdocs-nature
     SUBDIR += py-mwparserfromhell
     SUBDIR += py-myst-parser
+    SUBDIR += py-nbsphinx
     SUBDIR += py-nltk
     SUBDIR += py-normality
     SUBDIR += py-numpydoc
diff --git a/textproc/py-nbsphinx/Makefile b/textproc/py-nbsphinx/Makefile
new file mode 100644
index 000000000000..085951fa94a0
--- /dev/null
+++ b/textproc/py-nbsphinx/Makefile
@@ -0,0 +1,27 @@
+# Created by: Po-Chuan Hsieh <sunpoet at FreeBSD.org>
+
+PORTNAME=	nbsphinx
+PORTVERSION=	0.8.6
+CATEGORIES=	textproc python
+MASTER_SITES=	CHEESESHOP
+PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
+
+MAINTAINER=	sunpoet at FreeBSD.org
+COMMENT=	Jupyter Notebook Tools for Sphinx
+
+LICENSE=	MIT
+LICENSE_FILE=	${WRKSRC}/LICENSE
+
+RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}docutils>=0:textproc/py-docutils@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}Jinja2>=0:devel/py-Jinja2@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}nbconvert>=0:devel/py-nbconvert@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}nbformat>=0:devel/py-nbformat@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}sphinx>=1.8,1:textproc/py-sphinx@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}traitlets>=0:devel/py-traitlets@${PY_FLAVOR}
+
+USES=		python:3.6+
+USE_PYTHON=	autoplist concurrent distutils
+
+NO_ARCH=	yes
+
+.include <bsd.port.mk>
diff --git a/textproc/py-nbsphinx/distinfo b/textproc/py-nbsphinx/distinfo
new file mode 100644
index 000000000000..e7e8d36db973
--- /dev/null
+++ b/textproc/py-nbsphinx/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1628103016
+SHA256 (nbsphinx-0.8.6.tar.gz) = 097dee333558f400e9abbb53ce7d4fa64a257cfa89dd20f7554dca7f0cd5e143
+SIZE (nbsphinx-0.8.6.tar.gz) = 146019
diff --git a/textproc/py-nbsphinx/pkg-descr b/textproc/py-nbsphinx/pkg-descr
new file mode 100644
index 000000000000..db71249783a2
--- /dev/null
+++ b/textproc/py-nbsphinx/pkg-descr
@@ -0,0 +1,7 @@
+nbsphinx is a Sphinx extension that provides a source parser for *.ipynb files.
+Custom Sphinx directives are used to show Jupyter Notebook code cells (and of
+course their results) in both HTML and LaTeX output. Unevaluated notebooks --
+i.e. notebooks without stored output cells -- will be automatically executed
+during the Sphinx build process.
+
+WWW: https://github.com/spatialaudio/nbsphinx


More information about the dev-commits-ports-main mailing list