diff options
author | Adam J. Stewart <ajstewart426@gmail.com> | 2021-01-15 02:47:18 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-01-15 09:47:18 +0100 |
commit | 92b6d3ac67e9f4c0095448f422619504f4dda699 (patch) | |
tree | dc6fc802cced14f440802efed08190b7a81cb93e | |
parent | 2c44e62813c4d7ad5bc333ba4bc2449d1f13eb32 (diff) | |
download | spack-92b6d3ac67e9f4c0095448f422619504f4dda699.tar.gz spack-92b6d3ac67e9f4c0095448f422619504f4dda699.tar.bz2 spack-92b6d3ac67e9f4c0095448f422619504f4dda699.tar.xz spack-92b6d3ac67e9f4c0095448f422619504f4dda699.zip |
py-anuga: add new package (#20782)
-rw-r--r-- | var/spack/repos/builtin/packages/py-anuga/package.py | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/py-anuga/package.py b/var/spack/repos/builtin/packages/py-anuga/package.py new file mode 100644 index 0000000000..931a45160d --- /dev/null +++ b/var/spack/repos/builtin/packages/py-anuga/package.py @@ -0,0 +1,32 @@ +# Copyright 2013-2021 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 PyAnuga(PythonPackage): + """ANUGA (pronounced "AHnooGAH") is open-source software for the simulation + of the shallow water equation, in particular it can be used to model + tsunamis and floods.""" + + homepage = "https://github.com/GeoscienceAustralia/anuga_core" + url = "https://github.com/GeoscienceAustralia/anuga_core/archive/2.1.tar.gz" + + version('2.1', sha256='0e56c4a7d55570d7b2c36fa9b53ee4e7b85f62be0b4c03ad8ab5f51464321d2f') + + variant('mpi', default=True, description='Install anuga_parallel') + + # At present AnuGA has only been run and tested using python 2.x. + # We recommend python 2.7. + depends_on('python@2.6:2.8', type=('build', 'run')) + depends_on('py-setuptools@:44', type='build') + depends_on('py-numpy@:1.16', type=('build', 'run')) + depends_on('py-netcdf4', type=('build', 'run')) + depends_on('py-matplotlib@:2', type=('build', 'run')) + depends_on('gdal@:3.2+python', type=('build', 'run')) + depends_on('py-pypar', when='+mpi', type=('build', 'run')) + + # https://github.com/GeoscienceAustralia/anuga_core/issues/247 + conflicts('%apple-clang@12:') |