spack/var/spack/repos/builtin/packages/py-equation/package.py
Todd Gamblin 3118647802
Update copyright year to 2024 (#41919)
It was time to run `spack license update-copyright-year` again.
2024-01-02 09:21:30 +01:00

24 lines
890 B
Python

# Copyright 2013-2024 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"))