summaryrefslogtreecommitdiff
path: root/var/spack/repos/builtin/packages/py-jupytext/package.py
blob: 42298b11b5c2c98c8581d0e50fce22fe971d8f10 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
# Copyright 2013-2024 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.package 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")

    license("MIT")

    version("1.14.1", sha256="314fa0e732b1d14764271843b676938ef8a7b9d53c3575ade636b45d13f341c8")
    version("1.13.6", sha256="c6c25918ddb6403d0d8504e08d35f6efc447baf0dbeb6a28b73adf39e866a0c4")
    version("1.13.0", sha256="fb220af65d2bd32d01c779b0e935c4c2b71e3f5f2f01bf1bab10d5f23fe121d4")

    depends_on("python@3.6:3", type=("build", "run"))
    depends_on("py-setuptools@40.8.0:", 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:2", type=("build", "run"), when="@1.14.1:")
    depends_on("py-markdown-it-py@1.0:1", type=("build", "run"), when="@:1.13.6")
    # todo: in order to use jupytext as a jupyterlab extension,
    # some additional dependencies need to be added (and checked):
    depends_on("py-jupyterlab@3", type=("build", "run"))
    depends_on("py-jupyter-packaging@0.7.9:0.7", type="build")