From patchwork Thu Jun 11 15:13:51 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Giacomo Leidi X-Patchwork-Id: 22658 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 3D4B827BBE3; Thu, 11 Jun 2020 16:25:51 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_ADSP_ALL, DKIM_SIGNED,MAILING_LIST_MULTI,RCVD_IN_MSPIKE_H4,RCVD_IN_MSPIKE_WL, T_DKIM_INVALID,URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.2 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTP id 0258827BBE1 for ; Thu, 11 Jun 2020 16:25:51 +0100 (BST) Received: from localhost ([::1]:45024 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jjP5S-0001UF-Bg for patchwork@mira.cbaines.net; Thu, 11 Jun 2020 11:25:50 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:52416) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jjOv9-0007CN-3M for guix-patches@gnu.org; Thu, 11 Jun 2020 11:15:11 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:54467) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jjOv8-0004D5-Mx for guix-patches@gnu.org; Thu, 11 Jun 2020 11:15:10 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jjOv8-0005Lc-J0 for guix-patches@gnu.org; Thu, 11 Jun 2020 11:15:10 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#41807] [PATCH 20/26] gnu: Add python-nbsphinx. Resent-From: Giacomo Leidi Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 11 Jun 2020 15:15:10 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 41807 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 41807@debbugs.gnu.org Cc: Giacomo Leidi Received: via spool by 41807-submit@debbugs.gnu.org id=B41807.159188847120306 (code B ref 41807); Thu, 11 Jun 2020 15:15:10 +0000 Received: (at 41807) by debbugs.gnu.org; 11 Jun 2020 15:14:31 +0000 Received: from localhost ([127.0.0.1]:37748 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jjOuV-0005HM-17 for submit@debbugs.gnu.org; Thu, 11 Jun 2020 11:14:31 -0400 Received: from latitanza.investici.org ([82.94.249.234]:64491) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jjOuK-0005D4-21 for 41807@debbugs.gnu.org; Thu, 11 Jun 2020 11:14:20 -0400 Received: from mx3.investici.org (unknown [127.0.0.1]) by latitanza.investici.org (Postfix) with ESMTP id DA17812016A; Thu, 11 Jun 2020 15:14:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=autistici.org; s=stigmate; t=1591888459; bh=6I6OKanRCwZhg1koaGEPEmoWfSrhKbef8ehOpXoijhU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=EbU+tkJkDfBZ3YaTj3vdkcxITD7YubWTtua8xOSUc5fRq7wJWTXyC3OPCBdIdiPIP 5hLY75hdYLWWkkk8Ka7dcC1rJoCICSvIQPiLaXB/morSnLwcO4OYf9RzZSN6kP6bEM IkO39aCP2PTA9nGx+56Nav0njlJFIdciP4pzDi0g= Received: from [82.94.249.234] (mx3.investici.org [82.94.249.234]) (Authenticated sender: goodoldpaul@autistici.org) by localhost (Postfix) with ESMTPSA id A010212015C; Thu, 11 Jun 2020 15:14:19 +0000 (UTC) From: Giacomo Leidi Date: Thu, 11 Jun 2020 17:13:51 +0200 Message-Id: <20200611151357.18843-20-goodoldpaul@autistici.org> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20200611151357.18843-1-goodoldpaul@autistici.org> References: <20200611151357.18843-1-goodoldpaul@autistici.org> MIME-Version: 1.0 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" X-getmail-retrieved-from-mailbox: Patches * gnu/packages/sphinx.scm (python-nbsphinx): New variable. --- gnu/packages/sphinx.scm | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/gnu/packages/sphinx.scm b/gnu/packages/sphinx.scm index f27f9d0176..27d3cb45b2 100644 --- a/gnu/packages/sphinx.scm +++ b/gnu/packages/sphinx.scm @@ -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)))