py-pydocstyle: add new package (#24929)

This commit is contained in:
Adam J. Stewart 2021-07-20 03:12:42 -05:00 committed by GitHub
parent 8ec0ef4c6d
commit 55e247b407
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -0,0 +1,22 @@
# Copyright 2013-2021 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 import *
class PyPydocstyle(PythonPackage):
"""Python docstring style checker."""
homepage = "https://github.com/PyCQA/pydocstyle/"
pypi = "pydocstyle/pydocstyle-6.1.1.tar.gz"
version('6.1.1', sha256='1d41b7c459ba0ee6c345f2eb9ae827cab14a7533a88c5c6f7e94923f72df92dc')
variant('toml', default=True, description='Allow pydocstyle to read pyproject.toml')
depends_on('python@3.6:', type=('build', 'run'))
depends_on('py-setuptools', type=('build', 'run'))
depends_on('py-snowballstemmer', type=('build', 'run'))
depends_on('py-toml', when='+toml', type=('build', 'run'))