From 01a7a638c44f8f8f50f6d3b785468d1f9cbf56b0 Mon Sep 17 00:00:00 2001 From: Caetano Melone Date: Fri, 23 Feb 2024 03:07:24 -0800 Subject: [PATCH] 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 * reorder dependencies and versions --------- Co-authored-by: Adam J. Stewart --- .../builtin/packages/py-codespell/package.py | 22 +++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 var/spack/repos/builtin/packages/py-codespell/package.py diff --git a/var/spack/repos/builtin/packages/py-codespell/package.py b/var/spack/repos/builtin/packages/py-codespell/package.py new file mode 100644 index 00000000000000..a88d7b3c2d213a --- /dev/null +++ b/var/spack/repos/builtin/packages/py-codespell/package.py @@ -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")