add recipes for sphinx-book-theme and its dependencies if unknown (#40312)

* add recipes for sphinx-book-theme and its dependencies if unknown

* fix version and mission https

* fix based on reviewers remarks
This commit is contained in:
Claire Guilbaud 2023-10-20 14:18:41 +02:00 committed by GitHub
parent 004d3e4cca
commit 9543abd2d9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 69 additions and 0 deletions

View File

@ -0,0 +1,19 @@
# 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 PyAccessiblePygments(PythonPackage):
"""This package includes a collection of accessible themes for pygments based on
different sources."""
homepage = "https://github.com/Quansight-Labs/accessible-pygments"
pypi = "accessible-pygments/accessible-pygments-0.0.4.tar.gz"
version("0.0.4", sha256="e7b57a9b15958e9601c7e9eb07a440c813283545a20973f2574a5f453d0e953e")
depends_on("py-pygments@1.5:", type=("build", "run"))
depends_on("py-setuptools", type=("build"))

View File

@ -0,0 +1,28 @@
# 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 PyPydataSphinxTheme(PythonPackage):
"""A clean, three-column, Bootstrap-based Sphinx theme by and for the PyData community."""
homepage = "https://pydata-sphinx-theme.readthedocs.io/en/stable"
pypi = "pydata_sphinx_theme/pydata_sphinx_theme-0.14.1.tar.gz"
version("0.14.1", sha256="d8d4ac81252c16a002e835d21f0fea6d04cf3608e95045c816e8cc823e79b053")
depends_on("python@3.8:", type=("build", "run"))
depends_on("py-sphinx-theme-builder", type="build")
depends_on("py-sphinx@5:", type=("build", "run"))
depends_on("py-beautifulsoup4", type=("build", "run"))
depends_on("py-docutils@:0.16,0.17.1:", type=("build", "run"))
depends_on("py-packaging", type=("build", "run"))
depends_on("py-babel", type=("build", "run"))
depends_on("py-pygments@2.7:", type=("build", "run"))
depends_on("py-accessible-pygments", type=("build", "run"))
depends_on("py-typing-extensions", type=("build", "run"))

View File

@ -0,0 +1,22 @@
# 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 PySphinxBookTheme(PythonPackage):
"""Lightweight Sphinx theme designed to mimic the look-and-feel of an interactive book."""
homepage = "https://sphinx-book-theme.readthedocs.io/en/latest"
pypi = "sphinx_book_theme/sphinx_book_theme-1.0.1.tar.gz"
version("1.0.1", sha256="927b399a6906be067e49c11ef1a87472f1b1964075c9eea30fb82c64b20aedee")
depends_on("python@3.7:", type=("build", "run"))
depends_on("py-sphinx-theme-builder@0.2.0a7:", type="build")
depends_on("py-sphinx@4:6", type=("build", "run"))
depends_on("py-pydata-sphinx-theme@0.13.3:", type=("build", "run"))