summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authorSinan <sbulutw@gmail.com>2020-06-05 18:16:13 -0700
committerGitHub <noreply@github.com>2020-06-05 18:16:13 -0700
commita08f3dd5050d8dc6c36a5dc9c38cbdd7e29e1dc0 (patch)
tree3b47db13459f7d354eab01d22db752144c71f2aa /var
parentbfa05628cbb3f714ec6eca1fffc60fffc77ec530 (diff)
downloadspack-a08f3dd5050d8dc6c36a5dc9c38cbdd7e29e1dc0.tar.gz
spack-a08f3dd5050d8dc6c36a5dc9c38cbdd7e29e1dc0.tar.bz2
spack-a08f3dd5050d8dc6c36a5dc9c38cbdd7e29e1dc0.tar.xz
spack-a08f3dd5050d8dc6c36a5dc9c38cbdd7e29e1dc0.zip
New package: py-asteval (#16976)
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/py-asteval/package.py19
1 files changed, 19 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/py-asteval/package.py b/var/spack/repos/builtin/packages/py-asteval/package.py
new file mode 100644
index 0000000000..4f80a22789
--- /dev/null
+++ b/var/spack/repos/builtin/packages/py-asteval/package.py
@@ -0,0 +1,19 @@
+# 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 PyAsteval(PythonPackage):
+ """Safe, minimalistic evaluator of python expression using ast module"""
+
+ homepage = "http://github.com/newville/asteval"
+ url = "https://pypi.io/packages/source/a/asteval/asteval-0.9.18.tar.gz"
+
+ version('0.9.18', sha256='5d64e18b8a72c2c7ae8f9b70d1f80b68bbcaa98c1c0d7047c35489d03209bc86')
+
+ depends_on('python@3.5:', type=('build', 'run'))
+ depends_on('py-setuptools', type='build')
+ depends_on('py-pytest', type='test')