summaryrefslogtreecommitdiff
path: root/var/spack/repos/builtin/packages/py-sphinx-immaterial/package.py
blob: bc17ee4055ba891e04c8beeefa1b5b8ffb222a3a (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
# Copyright 2013-2022 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 PySphinxImmaterial(PythonPackage):
    """An adaptation of the popular mkdocs-material theme for the Sphinx documentation tool."""

    homepage = "https://github.com/jbms/sphinx-immaterial"
    pypi = "sphinx_immaterial/sphinx_immaterial-0.11.2.tar.gz"

    license("MIT")

    version("0.11.2", sha256="a1c8387ca8b4da282949e474647d06f3b2f7d12fe54e9e662b962771012bf257")

    depends_on("python@3.8:", type=("build", "run"))
    depends_on("py-setuptools@42:", type="build")
    depends_on("py-setuptools-scm@6.3.2:", type="build")
    depends_on("py-appdirs", type=("build", "run"))
    depends_on("py-markupsafe", type=("build", "run"))
    depends_on("py-pydantic", type=("build", "run"))
    depends_on("py-requests", type=("build", "run"))
    depends_on("py-sphinx@4:", type=("build", "run"))
    depends_on("py-typing-extensions", type=("build", "run"))

    # see https://jbms.github.io/sphinx-immaterial/#material-for-sphinx for node requirements
    depends_on("node-js@14:", type="build")
    depends_on("npm", type="build")