summaryrefslogtreecommitdiff
path: root/var/spack/repos/builtin/packages/py-nbconvert/package.py
diff options
context:
space:
mode:
Diffstat (limited to 'var/spack/repos/builtin/packages/py-nbconvert/package.py')
-rw-r--r--var/spack/repos/builtin/packages/py-nbconvert/package.py35
1 files changed, 18 insertions, 17 deletions
diff --git a/var/spack/repos/builtin/packages/py-nbconvert/package.py b/var/spack/repos/builtin/packages/py-nbconvert/package.py
index 41a1c89686..0e221d355c 100644
--- a/var/spack/repos/builtin/packages/py-nbconvert/package.py
+++ b/var/spack/repos/builtin/packages/py-nbconvert/package.py
@@ -25,30 +25,31 @@
from spack import *
-class PyNbconvert(Package):
+class PyNbconvert(PythonPackage):
"""Jupyter Notebook Conversion"""
homepage = "https://github.com/jupyter/nbconvert"
url = "https://github.com/jupyter/nbconvert/archive/4.2.0.tar.gz"
- version('4.2.0' , '8bd88771cc00f575d5edcd0b5197f964')
- version('4.1.0' , '06655576713ba1ff7cece2b92760c187')
- version('4.0.0' , '9661620b1e10a7b46f314588d2d0932f')
-
- extends('python')
+ version('4.2.0', '8bd88771cc00f575d5edcd0b5197f964')
+ version('4.1.0', '06655576713ba1ff7cece2b92760c187')
+ version('4.0.0', '9661620b1e10a7b46f314588d2d0932f')
depends_on('py-setuptools', type='build')
depends_on('py-pycurl', type='build')
depends_on('python@2.7:2.7.999,3.3:')
- depends_on('py-mistune')
- depends_on('py-jinja2')
- depends_on('py-pygments')
- depends_on('py-traitlets')
- depends_on('py-jupyter-core')
- depends_on('py-nbformat')
- depends_on('py-entrypoints')
- depends_on('py-tornado')
- depends_on('py-jupyter-client')
+ depends_on('py-mistune', type=('build', 'run'))
+ depends_on('py-jinja2', type=('build', 'run'))
+ depends_on('py-pygments', type=('build', 'run'))
+ depends_on('py-traitlets', type=('build', 'run'))
+ depends_on('py-jupyter-core', type=('build', 'run'))
+ depends_on('py-nbformat', type=('build', 'run'))
+ depends_on('py-entrypoints', type=('build', 'run'))
+ depends_on('py-tornado', type=('build', 'run'))
+ depends_on('py-jupyter-client', type=('build', 'run'))
- def install(self, spec, prefix):
- setup_py('install', '--prefix={0}'.format(prefix))
+ # FIXME:
+ # Failed, try again after installing PycURL with `pip install pycurl` to avoid outdated SSL. # noqa
+ # Failed to download css from https://cdn.jupyter.org/notebook/4.1.0/style/style.min.css: [Errno socket error] [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:661) # noqa
+ # Downloading CSS: https://cdn.jupyter.org/notebook/4.1.0/style/style.min.css # noqa
+ # error: Need Notebook CSS to proceed: nbconvert/resources/style.min.css