py-jupytext: add new package (#26732)

* py-jupytext: add new package

* Apply suggestions from code review

Co-authored-by: Adam J. Stewart <ajstewart426@gmail.com>

* update jupytext dependencies

* Apply suggestions from code review

Co-authored-by: Adam J. Stewart <ajstewart426@gmail.com>

* py-jupytext: remove py-jupyerlab dependency

Co-authored-by: Adam J. Stewart <ajstewart426@gmail.com>
This commit is contained in:
Valentin Volkl 2021-10-18 01:51:42 +02:00 committed by GitHub
parent 03f84fb440
commit 9c7e71df34
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 70 additions and 0 deletions

View file

@ -0,0 +1,26 @@
# Copyright 2013-2021 Lawrence Livermore National Security, LLC and other
# Spack Project Developers. See the top-level COPYRIGHT file for details.
#
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
from spack import *
class PyJupytext(PythonPackage):
"""Jupyter Notebooks as Markdown Documents, Julia, Python or R scripts """
homepage = "https://github.com/mwouts/jupytext/"
git = "https://github.com/mwouts/jupytext/"
pypi = "jupytext/jupytext-1.13.0.tar.gz"
maintainers = ['vvolkl']
version('1.13.0', sha256='fb220af65d2bd32d01c779b0e935c4c2b71e3f5f2f01bf1bab10d5f23fe121d4')
depends_on('py-setuptools', type='build')
depends_on('py-nbformat', type=('build', 'run'))
depends_on('py-pyyaml', type=('build', 'run'))
depends_on('py-toml', type=('build', 'run'))
depends_on('py-mdit-py-plugins', type=('build', 'run'))
depends_on('py-markdown-it-py@1.0:1', type=('build', 'run'))

View file

@ -0,0 +1,23 @@
# Copyright 2013-2021 Lawrence Livermore National Security, LLC and other
# Spack Project Developers. See the top-level COPYRIGHT file for details.
#
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
from spack import *
class PyMarkdownItPy(PythonPackage):
"""Markdown parser, done right.
100% CommonMark support, extensions, syntax plugins & high speed """
homepage = "https://github.com/executablebooks/markdown-it-py"
git = "https://github.com/executablebooks/markdown-it-py"
pypi = "markdown-it-py/markdown-it-py-1.1.0.tar.gz"
version('1.1.0', sha256='36be6bb3ad987bfdb839f5ba78ddf094552ca38ccbd784ae4f74a4e1419fc6e3')
depends_on('python@3.6:3', type=('build', 'run'))
depends_on('py-setuptools', type='build')
depends_on('py-attrs@19:21', type=('build', 'run'))
depends_on('py-typing-extensions@3.7.4:', type=('build', 'run'), when='^python@:3.7')

View file

@ -0,0 +1,21 @@
# Copyright 2013-2021 Lawrence Livermore National Security, LLC and other
# Spack Project Developers. See the top-level COPYRIGHT file for details.
#
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
from spack import *
class PyMditPyPlugins(PythonPackage):
"""Collection of core plugins for markdown-it-py"""
homepage = "https://github.com/executablebooks/mdit-py-plugins/"
git = "https://github.com/executablebooks/mdit-py-plugins/"
pypi = "mdit-py-plugins/mdit-py-plugins-0.2.8.tar.gz"
version('0.2.8', sha256='5991cef645502e80a5388ec4fc20885d2313d4871e8b8e320ca2de14ac0c015f')
depends_on('py-setuptools', type='build')
depends_on('py-markdown-it-py@1.0:1', type=('build', 'run'))
depends_on('python@3.6:3', type=('build', 'run'))