summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorValentin Volkl <valentin.volkl@cern.ch>2021-10-18 01:51:42 +0200
committerGitHub <noreply@github.com>2021-10-17 18:51:42 -0500
commit9c7e71df34fee94521365861eb18de7dd39c0838 (patch)
treefd4fb0b7ad62bde56feefb61c638b40000f82e18
parent03f84fb440770101816dad61ca59cf1bebf1997b (diff)
downloadspack-9c7e71df34fee94521365861eb18de7dd39c0838.tar.gz
spack-9c7e71df34fee94521365861eb18de7dd39c0838.tar.bz2
spack-9c7e71df34fee94521365861eb18de7dd39c0838.tar.xz
spack-9c7e71df34fee94521365861eb18de7dd39c0838.zip
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>
-rw-r--r--var/spack/repos/builtin/packages/py-jupytext/package.py26
-rw-r--r--var/spack/repos/builtin/packages/py-markdown-it-py/package.py23
-rw-r--r--var/spack/repos/builtin/packages/py-mdit-py-plugins/package.py21
3 files changed, 70 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/py-jupytext/package.py b/var/spack/repos/builtin/packages/py-jupytext/package.py
new file mode 100644
index 0000000000..a6e891fb2e
--- /dev/null
+++ b/var/spack/repos/builtin/packages/py-jupytext/package.py
@@ -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'))
diff --git a/var/spack/repos/builtin/packages/py-markdown-it-py/package.py b/var/spack/repos/builtin/packages/py-markdown-it-py/package.py
new file mode 100644
index 0000000000..f84c9bea43
--- /dev/null
+++ b/var/spack/repos/builtin/packages/py-markdown-it-py/package.py
@@ -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')
diff --git a/var/spack/repos/builtin/packages/py-mdit-py-plugins/package.py b/var/spack/repos/builtin/packages/py-mdit-py-plugins/package.py
new file mode 100644
index 0000000000..b8650d801a
--- /dev/null
+++ b/var/spack/repos/builtin/packages/py-mdit-py-plugins/package.py
@@ -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'))