summaryrefslogtreecommitdiff
path: root/var/spack/repos/builtin/packages/py-openmesh/package.py
blob: 3dcd44e89020f47637f2591676c8a77c46fc1ac8 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# 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 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"

    license("BSD-3-Clause")

    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"))