diff options
author | Andreas Baumbach <healther@users.noreply.github.com> | 2019-11-06 20:16:05 +0100 |
---|---|---|
committer | Adam J. Stewart <ajstewart426@gmail.com> | 2019-11-06 13:16:05 -0600 |
commit | 4ed56573c471d64fc87c2fd6741ac77551b147d4 (patch) | |
tree | b4185ea0acfb9a503bba6f32aab2ab6a75afa081 /var | |
parent | 52eba8fb00679f3a7842582d0f24f3f58a61d923 (diff) | |
download | spack-4ed56573c471d64fc87c2fd6741ac77551b147d4.tar.gz spack-4ed56573c471d64fc87c2fd6741ac77551b147d4.tar.bz2 spack-4ed56573c471d64fc87c2fd6741ac77551b147d4.tar.xz spack-4ed56573c471d64fc87c2fd6741ac77551b147d4.zip |
py-tatsu: new package (#13566)
* py-tatsu: new package
* drop unnecessary dependencies
* drop kanji, add variant, and restrict to future releases
Diffstat (limited to 'var')
-rw-r--r-- | var/spack/repos/builtin/packages/py-tatsu/package.py | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/py-tatsu/package.py b/var/spack/repos/builtin/packages/py-tatsu/package.py new file mode 100644 index 0000000000..8aa0d0cf4a --- /dev/null +++ b/var/spack/repos/builtin/packages/py-tatsu/package.py @@ -0,0 +1,27 @@ +# Copyright 2013-2019 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 PyTatsu(PythonPackage): + """TatSu (the successor to Grako) is a tool that takes grammars in + a variation of EBNF as input, and outputs memoizing (Packrat) PEG + parsers in Python.""" + + homepage = "https://github.com/neogeny/tatsu" + url = "https://pypi.io/packages/source/T/TatSu/TatSu-4.4.0.zip" + + version('4.4.0', sha256='80713413473a009f2081148d0f494884cabaf9d6866b71f2a68a92b6442f343d') + + variant('future_regex', default=True, description='Use regex implementation') + + depends_on('python@3.6:', type=('build', 'run'), when='@4.5:') + depends_on('py-setuptools', type='build') + # part of the standard lib in python@3.7.0, required in the current HEAD + depends_on('py-dataclasses@0.6:', type=('build', 'run'), when='@4.5:^python@:3.6.99') + depends_on('py-pytest-mypy', type='test') + # optional dependency, otherwise falls back to standard implementation + depends_on('py-regex@2018.8:', type=('build', 'run'), when='+future_regex') |