py-codespell: add package (#42694)

* py-codespell: add package

* setuptools-scm conflict

confirmed via https://github.com/codespell-project/codespell/issues/3365

Co-authored-by: Adam J. Stewart <ajstewart426@gmail.com>

* reorder dependencies and versions

---------

Co-authored-by: Adam J. Stewart <ajstewart426@gmail.com>
This commit is contained in:
Caetano Melone 2024-02-23 03:07:24 -08:00 committed by GitHub
parent 20fc5a174a
commit bccefa14cb
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -0,0 +1,22 @@
# 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 PyCodespell(PythonPackage):
"""check code for common misspellings"""
homepage = "https://github.com/codespell-project/codespell"
pypi = "codespell/codespell-2.2.6.tar.gz"
license("GPL-2.0", checked_by="cmelone")
version("2.2.6", sha256="a8c65d8eb3faa03deabab6b3bbe798bea72e1799c7e9e955d57eca4096abcff9")
depends_on("py-setuptools@64.0:", type="build")
depends_on("py-setuptools-scm@6.2: +toml", type="build")
conflicts("^py-setuptools-scm@8.0.0")