diff options
Diffstat (limited to 'var/spack/repos/builtin/packages/py-mapbox-earcut/package.py')
-rw-r--r-- | var/spack/repos/builtin/packages/py-mapbox-earcut/package.py | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/py-mapbox-earcut/package.py b/var/spack/repos/builtin/packages/py-mapbox-earcut/package.py new file mode 100644 index 0000000000..5468f48a45 --- /dev/null +++ b/var/spack/repos/builtin/packages/py-mapbox-earcut/package.py @@ -0,0 +1,21 @@ +# Copyright 2013-2022 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 PyMapboxEarcut(PythonPackage): + """Python bindings for the C++ implementation of the Mapbox Earcut library, + which provides very fast and quite robust triangulation of 2D polygons.""" + + homepage = "https://pypi.org/project/mapbox-earcut/" + pypi = "mapbox-earcut/mapbox_earcut-1.0.1.tar.gz" + git = "https://github.com/skogler/mapbox_earcut_python" + + version("1.0.1", "9f155e429a22e27387cfd7a6372c3a3865aafa609ad725e2c4465257f154a438") + + depends_on("py-setuptools@42:", type="build") + depends_on("py-pybind11@2.6:2", type="build") + depends_on("py-numpy", type=("build", "run")) |