From 7596aac9589a711ca22d1bc34c5d91ad261dc3ff Mon Sep 17 00:00:00 2001 From: downloadico Date: Fri, 3 May 2024 16:56:21 -0600 Subject: [PATCH] New package: py-pylith (#43987) --- .../builtin/packages/py-pylith/package.py | 26 +++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 var/spack/repos/builtin/packages/py-pylith/package.py diff --git a/var/spack/repos/builtin/packages/py-pylith/package.py b/var/spack/repos/builtin/packages/py-pylith/package.py new file mode 100644 index 0000000000..3ce7c217a7 --- /dev/null +++ b/var/spack/repos/builtin/packages/py-pylith/package.py @@ -0,0 +1,26 @@ +# 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 PyPylith(AutotoolsPackage, PythonExtension): + """PyLith does dynamic and quasi-static simulations of crustal deformation. + PyLith is an open-source finite-element code for dynamic and quasi-static + simulations of crustal deformation, primarily earthquakes and volcanoes.""" + + homepage = "https://geodynamics.org/resources/pylith" + url = "https://github.com/geodynamics/pylith/releases/download/v4.0.0/pylith-4.0.0.tar.gz" + + license("MIT", checked_by="downloadico") + + version("4.0.0", sha256="31e0131683292ee2e62f2c818cc2777f026104ae73d7a8368975dd6560292689") + + depends_on("py-setuptools") + depends_on("py-cig-pythia") + depends_on("spatialdata") + depends_on("netcdf-c") + depends_on("petsc@=3.20.2+hdf5") + depends_on("py-h5py")