12 buildPythonPackage rec {
13 pname = "mapbox-earcut";
15 format = "setuptools";
17 disabled = pythonOlder "3.7";
19 src = fetchFromGitHub {
21 repo = "mapbox_earcut_python";
22 rev = "refs/tags/v${version}";
23 hash = "sha256-xR+nO5xdoDUhWZM19DOid3lsEXBood5NofQ0SezJ9OE=";
31 propagatedBuildInputs = [ numpy ];
33 nativeCheckInputs = [ pytestCheckHook ];
35 pythonImportsCheck = [ "mapbox_earcut" ];
38 homepage = "https://github.com/skogler/mapbox_earcut_python";
39 changelog = "https://github.com/skogler/mapbox_earcut_python/releases/tag/v${version}";
40 license = licenses.isc;
41 description = "Mapbox-earcut fast triangulation of 2D-polygons";
43 Python bindings for the C++ implementation of the Mapbox Earcut
44 library, which provides very fast and quite robust triangulation of 2D