32 lines
1.4 KiB
Python
32 lines
1.4 KiB
Python
# 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 PyMarkdown(PythonPackage):
|
|
"""This is a Python implementation of John Gruber's Markdown. It is
|
|
almost completely compliant with the reference implementation, though
|
|
there are a few very minor differences. See John's Syntax
|
|
Documentation for the syntax rules.
|
|
"""
|
|
|
|
homepage = "https://python-markdown.github.io/"
|
|
pypi = "markdown/Markdown-2.6.11.tar.gz"
|
|
|
|
version("3.4.1", sha256="3b809086bb6efad416156e00a0da66fe47618a5d6918dd688f53f40c8e4cfeff")
|
|
version("3.3.4", sha256="31b5b491868dcc87d6c24b7e3d19a0d730d59d3e46f4eea6430a321bed387a49")
|
|
version("3.1.1", sha256="2e50876bcdd74517e7b71f3e7a76102050edec255b3983403f1a63e7c8a41e7a")
|
|
|
|
depends_on("python@2.7:2.8,3.3.5:", type=("build", "run"))
|
|
depends_on("python@3.6:", when="@3.3.4:", type=("build", "run"))
|
|
depends_on("python@3.7:", when="@3.4.1:", type=("build", "run"))
|
|
|
|
depends_on("py-setuptools", type="build")
|
|
depends_on("py-setuptools@36.6:", type="build")
|
|
depends_on("py-importlib-metadata", when="@3.3.4: ^python@:3.7", type=("build", "run"))
|
|
depends_on("py-importlib-metadata@4.4:", when="@3.4.1: ^python@:3.9", type=("build", "run"))
|