python3Packages.mapbox-earcut: init at 2.2.2

This commit is contained in:
Frido Friedemann 2021-04-23 00:06:04 +02:00
parent 9c3e927949
commit c2755427d6
2 changed files with 43 additions and 0 deletions

View File

@ -0,0 +1,41 @@
{ lib
, buildPythonPackage
, fetchPypi
, fetchFromGitHub
, numpy
, pybind11
, pytestCheckHook
, setuptools
}:
buildPythonPackage rec {
pname = "mapbox-earcut";
version = "1.0.0";
src = fetchFromGitHub {
owner = "skogler";
repo = "mapbox_earcut_python";
rev = "v${version}";
sha256 = "m4q2qTL55fkdi3hm75C3/XV9SUQkpJS+B5SEgpPEctk=";
};
nativeBuildInputs = [ setuptools pybind11 ];
propagatedBuildInputs = [ numpy ];
checkInputs = [ pytestCheckHook ];
pythonImportsCheck = [ "mapbox_earcut" ];
meta = with lib; {
homepage = "https://github.com/skogler/mapbox_earcut_python";
license = licenses.isc;
description = "Mapbox-earcut fast triangulation of 2D-polygons";
longDescription = ''
Python bindings for the C++ implementation of the Mapbox Earcut
library, which provides very fast and quite robust triangulation of 2D
polygons.
'';
maintainers = with maintainers; [ friedelino ];
};
}

View File

@ -5121,6 +5121,8 @@ in {
mapbox = callPackage ../development/python-modules/mapbox { };
mapbox-earcut = callPackage ../development/python-modules/mapbox-earcut { };
mariadb = callPackage ../development/python-modules/mariadb { };
marisa-trie = callPackage ../development/python-modules/marisa-trie { };