From 55e247b407cf677c68c564f60a5cd2d5885e1a25 Mon Sep 17 00:00:00 2001 From: "Adam J. Stewart" Date: Tue, 20 Jul 2021 03:12:42 -0500 Subject: [PATCH] py-pydocstyle: add new package (#24929) --- .../builtin/packages/py-pydocstyle/package.py | 22 +++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 var/spack/repos/builtin/packages/py-pydocstyle/package.py diff --git a/var/spack/repos/builtin/packages/py-pydocstyle/package.py b/var/spack/repos/builtin/packages/py-pydocstyle/package.py new file mode 100644 index 00000000000..12c50b83eb0 --- /dev/null +++ b/var/spack/repos/builtin/packages/py-pydocstyle/package.py @@ -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'))