Add py-gmsh package (#45409)

Co-authored-by: chantrait <teddy.chantrait@cea.fr>
This commit is contained in:
teddy 2024-08-07 20:47:00 +02:00 committed by GitHub
parent 46efa7e151
commit 2298abd7f4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 46 additions and 0 deletions

View File

@ -0,0 +1,21 @@
# 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 PyGmsh(PythonPackage):
"""Pythonic interface to GMSH."""
homepage = "https://pypi.org/project/gmsh"
url = "https://files.pythonhosted.org/packages/30/cb/44245b93105e93ca0223f4dfbfd199803b10770e79dee63f63cb755570e0/gmsh-4.13.1-py2.py3-none-manylinux_2_24_x86_64.whl"
maintainers("tech-91")
license("GPL-2.0-or-later")
version("4.13.1", sha256="89ab53b6ec28f099b723da35bcdb6f5df779b10a9c0e6b09e8059906c3a48b27")
depends_on("gmsh+opencascade", type=("build", "run"))
depends_on("python@3.7:", type=("build", "run"))

View File

@ -0,0 +1,25 @@
# 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 PyPygmsh(PythonPackage):
"""Easier Pythonic interface to GMSH."""
homepage = "https://github.com/nschloe/pygmsh"
url = "https://github.com/nschloe/pygmsh/archive/refs/tags/v7.1.17.tar.gz"
maintainers("tech-91")
license("GPL-3.0-only")
version("7.1.17", sha256="9c9c0fb507eb5c0d0f1f64a23909b3bda25652df737e935ea9336b08773afc4e")
depends_on("py-flit-core@3.2:4", type="build", when="@1.3:")
depends_on("python@3.7:", type=("build", "run"))
depends_on("py-meshio@4.3.2:6", type=("build", "run"))
depends_on("py-gmsh", type=("build", "run"))
depends_on("py-numpy@1.20.0:1.26.4", type=("build", "run"))