summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErik Heeren <erik.heeren@epfl.ch>2023-02-01 07:02:11 +0100
committerGitHub <noreply@github.com>2023-02-01 00:02:11 -0600
commit5e39acea164c3883168515caf3a45f70691f3602 (patch)
tree62bc2cc8f1b20b21e6670eba8fa00e69ccb691db
parentcfdf0b69874287a8e0fd25c1b310827dad915f24 (diff)
downloadspack-5e39acea164c3883168515caf3a45f70691f3602.tar.gz
spack-5e39acea164c3883168515caf3a45f70691f3602.tar.bz2
spack-5e39acea164c3883168515caf3a45f70691f3602.tar.xz
spack-5e39acea164c3883168515caf3a45f70691f3602.zip
py-equation: new package (#35198)
* py-equation: new package * py-equation: add variants for extra dependencies
-rw-r--r--var/spack/repos/builtin/packages/py-equation/package.py23
1 files changed, 23 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/py-equation/package.py b/var/spack/repos/builtin/packages/py-equation/package.py
new file mode 100644
index 0000000000..337e997c9c
--- /dev/null
+++ b/var/spack/repos/builtin/packages/py-equation/package.py
@@ -0,0 +1,23 @@
+# Copyright 2013-2023 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.package import *
+
+
+class PyEquation(PythonPackage):
+ """General Equation Parser and Evaluator"""
+
+ homepage = "https://github.com/glenfletcher/Equation"
+ pypi = "equation/Equation-1.2.01.tar.gz"
+
+ version("1.2.01", sha256="c8a21dc47d6c748fd19b6485978cf8c42fe31c43db7f44789d95fb5e9752b81c")
+
+ variant("vectormaths", description="Install VectorMaths dependencies", default=False)
+ variant("sciconst", description="Install SciConst dependencies", default=False)
+
+ depends_on("py-setuptools", type=("build", "run"))
+
+ depends_on("py-numpy", when="+vectormaths", type=("build", "run"))
+ depends_on("py-scipy@0.12.0:", when="+sciconst", type=("build", "run"))