summaryrefslogtreecommitdiff
path: root/var/spack/repos/builtin/packages/py-markdown-it-py/package.py
blob: 11e04270073ad0468c37b5cecfb8281ebcd81b1c (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
# Copyright 2013-2023 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 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("3.0.0", sha256="e3f60a94fa066dc52ec76661e37c851cb232d92f9886b15cb560aaada2df8feb")
    version("1.1.0", sha256="36be6bb3ad987bfdb839f5ba78ddf094552ca38ccbd784ae4f74a4e1419fc6e3")

    depends_on("python@3.8:", when="@2.1:", type=("build", "run"))
    depends_on("python@3.6:3", when="@:2.0", type=("build", "run"))
    depends_on("py-flit-core@3.4:3", when="@2.1:", type="build")

    depends_on("py-mdurl@0.1:0", when="@2:", type=("build", "run"))

    # Historical dependencies
    depends_on("py-setuptools", when="@:2.0", type="build")
    depends_on("py-attrs@19:21", when="@:2.0", type=("build", "run"))
    depends_on("py-typing-extensions@3.7.4:", when="@:2 ^python@:3.7", type=("build", "run"))