Patchwork [11/16] gnu: Add python-notebook.

login
register
mail settings
Submitter Ricardo Wurmus
Date Nov. 1, 2016, 12:20 p.m.
Message ID <20161101122046.751-12-ricardo.wurmus@mdc-berlin.de>
Download mbox | patch
Permalink /patch/17055/
State New
Headers show

Comments

Ricardo Wurmus - Nov. 1, 2016, 12:20 p.m.
* gnu/packages/python.scm (python-notebook, python2-notebook): New
variables.
---
 gnu/packages/python.scm | 38 ++++++++++++++++++++++++++++++++++++++
 1 file changed, 38 insertions(+)
Roel Janssen - Nov. 1, 2016, 6:10 p.m.
Ricardo Wurmus writes:

> * 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")

LGTM!

Kind regards,
Roel Janssen

Patch

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")