summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authorAdam J. Stewart <ajstewart426@gmail.com>2021-07-20 03:12:42 -0500
committerGitHub <noreply@github.com>2021-07-20 10:12:42 +0200
commit55e247b407cf677c68c564f60a5cd2d5885e1a25 (patch)
tree84e4423eaa9e1739ce7407f485aeba8949004b91 /var
parent8ec0ef4c6dc1330114ed8dbf12ed6f702041f46f (diff)
downloadspack-55e247b407cf677c68c564f60a5cd2d5885e1a25.tar.gz
spack-55e247b407cf677c68c564f60a5cd2d5885e1a25.tar.bz2
spack-55e247b407cf677c68c564f60a5cd2d5885e1a25.tar.xz
spack-55e247b407cf677c68c564f60a5cd2d5885e1a25.zip
py-pydocstyle: add new package (#24929)
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/py-pydocstyle/package.py22
1 files changed, 22 insertions, 0 deletions
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 0000000000..12c50b83eb
--- /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'))