diff options
author | teddy <teddy.chantrait@gmail.com> | 2024-08-07 20:47:00 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-08-07 20:47:00 +0200 |
commit | 2298abd7f4250cdc8ec68109d89c9afb42b9d923 (patch) | |
tree | e8736bac80fc9496f11b0d2c76141bb3ae35f436 | |
parent | 46efa7e15144c9abf469cc7a22ee185e13a162db (diff) | |
download | spack-2298abd7f4250cdc8ec68109d89c9afb42b9d923.tar.gz spack-2298abd7f4250cdc8ec68109d89c9afb42b9d923.tar.bz2 spack-2298abd7f4250cdc8ec68109d89c9afb42b9d923.tar.xz spack-2298abd7f4250cdc8ec68109d89c9afb42b9d923.zip |
Add py-gmsh package (#45409)
Co-authored-by: chantrait <teddy.chantrait@cea.fr>
-rw-r--r-- | var/spack/repos/builtin/packages/py-gmsh/package.py | 21 | ||||
-rw-r--r-- | var/spack/repos/builtin/packages/py-pygmsh/package.py | 25 |
2 files changed, 46 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/py-gmsh/package.py b/var/spack/repos/builtin/packages/py-gmsh/package.py new file mode 100644 index 0000000000..b1e3ce20bf --- /dev/null +++ b/var/spack/repos/builtin/packages/py-gmsh/package.py @@ -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")) diff --git a/var/spack/repos/builtin/packages/py-pygmsh/package.py b/var/spack/repos/builtin/packages/py-pygmsh/package.py new file mode 100644 index 0000000000..66480f2602 --- /dev/null +++ b/var/spack/repos/builtin/packages/py-pygmsh/package.py @@ -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")) |