summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdam J. Stewart <ajstewart426@gmail.com>2020-09-17 15:23:59 -0500
committerGitHub <noreply@github.com>2020-09-17 15:23:59 -0500
commitf9699fd3ff4e4eb2cc21cc7e423b39302f2d5873 (patch)
tree181e3dab65a5d9548f44488c365091375c49191c
parent69d8417d8ad37982bbd9cf06561914166f531be4 (diff)
downloadspack-f9699fd3ff4e4eb2cc21cc7e423b39302f2d5873.tar.gz
spack-f9699fd3ff4e4eb2cc21cc7e423b39302f2d5873.tar.bz2
spack-f9699fd3ff4e4eb2cc21cc7e423b39302f2d5873.tar.xz
spack-f9699fd3ff4e4eb2cc21cc7e423b39302f2d5873.zip
py-nbconvert: add new version (#18636)
-rw-r--r--var/spack/repos/builtin/packages/py-nbconvert/package.py52
1 files changed, 25 insertions, 27 deletions
diff --git a/var/spack/repos/builtin/packages/py-nbconvert/package.py b/var/spack/repos/builtin/packages/py-nbconvert/package.py
index 3419f14a17..1cb8b009ad 100644
--- a/var/spack/repos/builtin/packages/py-nbconvert/package.py
+++ b/var/spack/repos/builtin/packages/py-nbconvert/package.py
@@ -3,51 +3,49 @@
#
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
-import os
-from spack import *
-
class PyNbconvert(PythonPackage):
"""Jupyter Notebook Conversion"""
homepage = "https://github.com/jupyter/nbconvert"
- url = "https://github.com/jupyter/nbconvert/archive/4.2.0.tar.gz"
+ url = "https://pypi.io/packages/source/n/nbconvert/nbconvert-6.0.1.tar.gz"
- version('5.6.0', sha256='21a69fe5756a3af8e76dcc105217cc3bea4d8f23dbff5727d9fd1e4388b53beb')
- version('5.5.0', sha256='93721d772361d1cd59502dacfb76c4122359b1c321cea1882451532a2db02d59')
- version('4.2.0', sha256='32394be5a20f39f99fabfb9b2f2625df17f1c2a6699182ca41598e98e7cc9610')
- version('4.1.0', sha256='459f23381411fd1ff9ec5ed71fcd56b8c080d97b3a1e47dae1c5c391f9a47266')
- version('4.0.0', sha256='00e25eeca90523ba6b774b289073631ef5ac65bb2de9774e9b7f29604516265c')
+ version('6.0.1', sha256='db94117fbac29153834447e31b30cda337d4450e46e0bdb1a36eafbbf4435156')
+ version('5.6.0', sha256='427a468ec26e7d68a529b95f578d5cbf018cb4c1f889e897681c2b6d11897695')
+ version('5.5.0', sha256='138381baa41d83584459b5cfecfc38c800ccf1f37d9ddd0bd440783346a4c39c')
+ version('4.2.0', sha256='55946d7522741294fcdd50799bd1777d16673ce721fecca0610cdb86749863c6')
+ version('4.1.0', sha256='e0296e45293dd127d028f678e3b6aba3f1db3283a134178bdb49eea402d4cf1c')
+ version('4.0.0', sha256='472ad15d1a71f1ef00c4094c11bb93638858fc89fb2c5838b3aa6b67d981b437')
- variant('execute', default=True, description='Include jupyter-client')
variant('serve', default=True, description='Include a webserver')
- depends_on('py-pycurl', type='build', when='^python@2.7:2.8')
- depends_on('py-setuptools', type='build', when='@5:')
depends_on('python@2.7:2.8,3.3:', type=('build', 'run'))
- depends_on('python@2.7:2.8,3.5:', type=('build', 'run'), when='@5:')
+ depends_on('python@2.7:2.8,3.5:', type=('build', 'run'), when='@5:')
+ depends_on('python@3.6:', type=('build', 'run'), when='@6:')
+ depends_on('py-setuptools', type=('build', 'run'), when='@5:')
+ depends_on('py-pycurl', type='build', when='^python@:2.7.8')
depends_on('py-mistune@0.8.1:1.999', type=('build', 'run'))
depends_on('py-jinja2', type=('build', 'run'))
- depends_on('py-jinja2@2.4:', type=('build', 'run'), when='@5:')
+ depends_on('py-jinja2@2.4:', type=('build', 'run'), when='@5:')
depends_on('py-pygments', type=('build', 'run'))
+ depends_on('py-pygments@2.4.1:', type=('build', 'run'), when='@6:')
+ depends_on('py-jupyterlab-pygments', type=('build', 'run'), when='@6:')
depends_on('py-traitlets', type=('build', 'run'))
- depends_on('py-traitlets@4.2:', type=('build', 'run'), when='@5:')
+ depends_on('py-traitlets@4.2:', type=('build', 'run'), when='@5:')
depends_on('py-jupyter-core', type=('build', 'run'))
depends_on('py-nbformat', type=('build', 'run'))
- depends_on('py-nbformat@4.4.0:', type=('build', 'run'), when='@5:')
+ depends_on('py-nbformat@4.4.0:', type=('build', 'run'), when='@5:')
depends_on('py-entrypoints', type=('build', 'run'))
- depends_on('py-entrypoints@0.2.2:', type=('build', 'run'), when='@5:')
- depends_on('py-tornado@4.0:', type=('build', 'run'), when='+serve')
- depends_on('py-jupyter-client', type=('build', 'run'), when='+execute')
- depends_on('py-jupyter-client@4.2:', type=('build', 'run'), when='@5.2.1:+execute')
- depends_on('py-jupyter-client@5.3.1:', type=('build', 'run'), when='@5.6.0:+execute')
- depends_on('py-defusedxml', type=('build', 'run'), when='@5:')
- depends_on('py-testpath', type=('build', 'run'), when='@5:')
- depends_on('py-bleach', type=('build', 'run'), when='@5:')
- depends_on('py-pandocfilters@1.4.1:', type=('build', 'run'), when='@5:')
+ depends_on('py-entrypoints@0.2.2:', type=('build', 'run'), when='@5:')
+ depends_on('py-bleach', type=('build', 'run'), when='@5:')
+ depends_on('py-pandocfilters@1.4.1:', type=('build', 'run'), when='@5:')
+ depends_on('py-testpath', type=('build', 'run'), when='@5:')
+ depends_on('py-defusedxml', type=('build', 'run'), when='@5:')
+ depends_on('py-nbclient@0.5.0:0.5.999', type=('build', 'run'), when='@6:')
+ depends_on('py-tornado@4.0:', type=('build', 'run'), when='+serve')
def patch(self):
# We bundle this with the spack package so that the installer
# doesn't try to download it.
- install(os.path.join(self.package_dir, 'style.min.css'),
- os.path.join('nbconvert', 'resources', 'style.min.css'))
+ install(join_path(self.package_dir, 'style.min.css'),
+ join_path('nbconvert', 'resources', 'style.min.css'))