@@ -643,3 +643,32 @@ translate and to apply translation to Sphinx generated document.")
documentation when a change is detected. It also includes a livereload
enabled web server.")
(license license:expat)))
+
+(define-public python-nbsphinx
+ (package
+ (name "python-nbsphinx")
+ (version "0.7.0")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (pypi-uri "nbsphinx" version))
+ (sha256
+ (base32
+ "1ks6f4ni5gavmyq2jrycnwyzw4i7jfp9xggzgx1fsbzizw45am3p"))))
+ (build-system python-build-system)
+ (propagated-inputs
+ `(("python-docutils" ,python-docutils)
+ ("python-jinja2" ,python-jinja2)
+ ("python-nbconvert" ,python-nbconvert)
+ ("python-nbformat" ,python-nbformat)
+ ("python-sphinx" ,python-sphinx)
+ ("python-traitlets" ,python-traitlets)))
+ (home-page "https://nbsphinx.readthedocs.io/")
+ (synopsis "Jupyter Notebook Tools for Sphinx")
+ (description "@code{python-nbsphinx} is a Sphinx extension that
+provides a source parser for @code{*.ipynb} files. Custom Sphinx
+directives are used to show Jupyter Notebook code cells (and of course
+their results) in both HTML and LaTeX output. Un-evaluated notebooks
+- i.e. notebooks without stored output cells - will be automatically
+executed during the Sphinx build process.")
+ (license license:expat)))