From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ricardo Wurmus Subject: [PATCH 11/16] gnu: Add python-notebook. Date: Tue, 1 Nov 2016 13:20:41 +0100 Message-ID: <20161101122046.751-12-ricardo.wurmus@mdc-berlin.de> References: <20161101122046.751-1-ricardo.wurmus@mdc-berlin.de> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:55539) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1c1Y5O-0002Bt-Ha for guix-devel@gnu.org; Tue, 01 Nov 2016 08:22:39 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1c1Y5K-0003Xr-Ck for guix-devel@gnu.org; Tue, 01 Nov 2016 08:22:38 -0400 Received: from sinope02.bbbm.mdc-berlin.de ([141.80.25.24]:44798) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1c1Y5K-0003XW-6P for guix-devel@gnu.org; Tue, 01 Nov 2016 08:22:34 -0400 Received: from localhost (localhost [127.0.0.1]) by sinope02.bbbm.mdc-berlin.de (Postfix) with ESMTP id 4CE6367C99F for ; Tue, 1 Nov 2016 13:22:33 +0100 (CET) Received: from sinope02.bbbm.mdc-berlin.de ([127.0.0.1]) by localhost (sinope02.bbbm.mdc-berlin.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id xx9TVOShxkiE for ; Tue, 1 Nov 2016 13:22:28 +0100 (CET) Received: from HTCAONE.mdc-berlin.net (puck.citx.mdc-berlin.de [141.80.36.101]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by sinope02.bbbm.mdc-berlin.de (Postfix) with ESMTPS for ; Tue, 1 Nov 2016 13:22:28 +0100 (CET) In-Reply-To: <20161101122046.751-1-ricardo.wurmus@mdc-berlin.de> List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: guix-devel@gnu.org * gnu/packages/python.scm (python-notebook, python2-notebook): New variables. --- gnu/packages/python.scm | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm index 4463f50..bd04c80 100644 --- a/gnu/packages/python.scm +++ b/gnu/packages/python.scm @@ -6819,6 +6819,44 @@ convert an @code{.ipynb} notebook file into various static formats including: (define-public python2-nbconvert (package-with-python2 python-nbconvert)) +(define-public python-notebook + (package + (name "python-notebook") + (version "4.2.3") + (source (origin + (method url-fetch) + (uri (pypi-uri "notebook" version)) + (sha256 + (base32 + "0laq5c2f21frq6xcdckgq7raqhznbjb0qs0357g612z87wyn1a9r")))) + (build-system python-build-system) + (arguments + `(#:phases + (modify-phases %standard-phases + (replace 'check + (lambda _ + ;; HOME must be set for tests + (setenv "HOME" "/tmp") + (zero? (system* "nosetests"))))))) + (propagated-inputs + `(("python-jupyter-core" ,python-jupyter-core) + ("python-nbformat" ,python-nbformat) + ("python-nbconvert" ,python-nbconvert) + ("python-ipython" ,python-ipython))) + (native-inputs + `(("python-nose" ,python-nose) + ("python-sphinx" ,python-sphinx) + ("python-requests" ,python-requests))) + (home-page "http://jupyter.org/") + (synopsis "Web-based notebook environment for interactive computing") + (description + "The Jupyter HTML notebook is a web-based notebook environment for +interactive computing.") + (license license:bsd-3))) + +(define-public python2-notebook + (package-with-python2 python-notebook)) + (define-public python-chardet (package (name "python-chardet") -- 2.10.1