Add spackage for py-sphinx-rtd-dark-mode (#35946)

This commit is contained in:
Karen C. Tsai 2023-03-11 12:27:23 -07:00 committed by GitHub
parent 1e9a654f17
commit fe5865da0d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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 PySphinxRtdDarkMode(PythonPackage):
"""A Sphinx extension for adding a toggleable dark mode to the Read the Docs theme."""
homepage = "https://github.com/MrDogeBro/sphinx_rtd_dark_mode"
pypi = "sphinx-rtd-dark-mode/sphinx_rtd_dark_mode-1.2.4.tar.gz"
version("1.2.4", sha256="935bc1f3e62fc76eadd7d2760ac7f48bab907a97e44beda749a48a2706aeed63")
depends_on("py-setuptools", type="build")
depends_on("py-sphinx-rtd-theme", type=("build", "run"))
depends_on("python@3.4:", type=("build", "run"))