diff --git a/var/spack/repos/builtin/packages/py-openmesh/package.py b/var/spack/repos/builtin/packages/py-openmesh/package.py new file mode 100644 index 0000000000..6a6b2d914c --- /dev/null +++ b/var/spack/repos/builtin/packages/py-openmesh/package.py @@ -0,0 +1,25 @@ +# Copyright 2013-2023 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 PyOpenmesh(PythonPackage): + """A versatile halfedge-based data structure for representing and + manipulating polygon meshes""" + + homepage = "https://www.graphics.rwth-aachen.de:9000/OpenMesh/openmesh-python" + pypi = "openmesh/openmesh-1.1.3.tar.gz" + + version("1.2.1", sha256="6fd3fa41a68148e4a7523f562426aa9758bf65ccc6642abcf79c37bae9c6af3c") + version("1.1.3", sha256="c1d24abc85b7b518fe619639f89750bf19ed3b8938fed4dd739a72f1e6f8b0f6") + + depends_on("py-setuptools", type="build") + depends_on("py-setuptools-scm", type="build") + depends_on("cmake@3.1:", when="@1.1.3 platform=windows", type="build") + depends_on("cmake@3.3.0:", when="@1.2.2 platform=windows", type="build") + depends_on("cmake", type="build") + + depends_on("py-numpy", type=("build", "run"))