diff options
author | Adam J. Stewart <ajstewart426@gmail.com> | 2020-03-13 14:40:58 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-03-13 14:40:58 -0500 |
commit | 262a69c0a9b6ad6c2e197a068958b0e2976cff72 (patch) | |
tree | a9f810c8f2eb253fde04438df1156a9214c6ae20 /var | |
parent | 14441e00dc1c04df40d361ca46fd63c7446ac2ae (diff) | |
download | spack-262a69c0a9b6ad6c2e197a068958b0e2976cff72.tar.gz spack-262a69c0a9b6ad6c2e197a068958b0e2976cff72.tar.bz2 spack-262a69c0a9b6ad6c2e197a068958b0e2976cff72.tar.xz spack-262a69c0a9b6ad6c2e197a068958b0e2976cff72.zip |
py-astpretty: add new package (#15484)
* py-astpretty: add new package
* pkg_resources needed at run-time
Diffstat (limited to 'var')
-rw-r--r-- | var/spack/repos/builtin/packages/py-astpretty/package.py | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/py-astpretty/package.py b/var/spack/repos/builtin/packages/py-astpretty/package.py new file mode 100644 index 0000000000..b6b4e9855f --- /dev/null +++ b/var/spack/repos/builtin/packages/py-astpretty/package.py @@ -0,0 +1,21 @@ +# Copyright 2013-2020 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 PyAstpretty(PythonPackage): + """Pretty print the output of python stdlib `ast.parse`.""" + + homepage = "https://github.com/asottile/astpretty" + url = "https://pypi.io/packages/source/a/astpretty/astpretty-2.0.0.tar.gz" + + version('2.0.0', sha256='e4724bfd753636ba4a84384702e9796e5356969f40af2596d846ce64addde086') + + variant('typed', default=False, description='Add support for typed comments') + + depends_on('python@3.6.1:', type=('build', 'run')) + depends_on('py-setuptools', type=('build', 'run')) + depends_on('py-typed-ast', type=('build', 'run'), when='+typed') |