diff options
Diffstat (limited to 'var/spack/repos/builtin/packages/py-pyupgrade/package.py')
-rw-r--r-- | var/spack/repos/builtin/packages/py-pyupgrade/package.py | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/py-pyupgrade/package.py b/var/spack/repos/builtin/packages/py-pyupgrade/package.py new file mode 100644 index 0000000000..6094a5b5a2 --- /dev/null +++ b/var/spack/repos/builtin/packages/py-pyupgrade/package.py @@ -0,0 +1,19 @@ +# Copyright 2013-2022 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 PyPyupgrade(PythonPackage): + """A tool to automatically upgrade syntax for newer versions.""" + + homepage = "https://github.com/asottile/pyupgrade" + pypi = "pyupgrade/pyupgrade-2.31.1.tar.gz" + + version('2.31.1', sha256='22e0ad6dd39c4381805cb059f1e691b6315c62c0ebcec98a5f29d22cd186a72a') + + depends_on('python@3.7:', type=('build', 'run')) + depends_on('py-setuptools', type='build') + depends_on('py-tokenize-rt@3.2:', type=('build', 'run')) |