py-sphinxcontrib-spelling: new package (#46402)

* py-sphinxcontrib-spelling: new package

* Dependency enchant: Add missing dep on pkgconfig

---------

Co-authored-by: Bernhard Kaindl <bernhardkaindl7@gmail.com>
This commit is contained in:
Richard Berger 2024-10-22 01:18:33 -06:00 committed by GitHub
parent 5b279c0732
commit b56e792295
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 26 additions and 2 deletions

View File

@ -41,8 +41,9 @@ class Enchant(AutotoolsPackage):
version("2.1.1", sha256="5fad0a1e82ddfed91647e93da5955fc76249760fd51865648a36074dc97d526c")
version("2.1.0", sha256="2cdda2d9edb62ad895c34be35c598d56ac5b9b9298f3dfdaa2b40a1914d1db7e")
depends_on("c", type="build") # generated
depends_on("cxx", type="build") # generated
depends_on("c", type="build")
depends_on("cxx", type="build")
depends_on("pkgconfig", type="build", when="platform=linux")
variant("hunspell", default=True, description="Enables hunspell backend")

View File

@ -0,0 +1,23 @@
# Copyright 2013-2024 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 PySphinxcontribSpelling(PythonPackage):
"""A spelling checker for Sphinx-based documentation"""
homepage = "https://sphinxcontrib-spelling.readthedocs.io"
pypi = "sphinxcontrib-spelling/sphinxcontrib-spelling-8.0.0.tar.gz"
maintainers("rbberger")
license("BSD-2-Clause")
version("8.0.0", sha256="199d0a16902ad80c387c2966dc9eb10f565b1fb15ccce17210402db7c2443e5c")
depends_on("python@3.7:")
depends_on("py-sphinx@3:")
depends_on("py-pyenchant@3.1.1:")