linuxPackages_latest.broadcom_sta: add patch to compile on Kernel 6.12 (#359484)
[NixPkgs.git] / pkgs / development / python-modules / mapbox-earcut / default.nix
blobc7359364b2fb6690f64c8514af9ba3399a212c85
2   lib,
3   buildPythonPackage,
4   fetchFromGitHub,
5   numpy,
6   pybind11,
7   pytestCheckHook,
8   setuptools,
9   pythonOlder,
12 buildPythonPackage rec {
13   pname = "mapbox-earcut";
14   version = "1.0.2";
15   format = "setuptools";
17   disabled = pythonOlder "3.7";
19   src = fetchFromGitHub {
20     owner = "skogler";
21     repo = "mapbox_earcut_python";
22     rev = "refs/tags/v${version}";
23     hash = "sha256-xR+nO5xdoDUhWZM19DOid3lsEXBood5NofQ0SezJ9OE=";
24   };
26   nativeBuildInputs = [
27     setuptools
28     pybind11
29   ];
31   propagatedBuildInputs = [ numpy ];
33   nativeCheckInputs = [ pytestCheckHook ];
35   pythonImportsCheck = [ "mapbox_earcut" ];
37   meta = with lib; {
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";
42     longDescription = ''
43       Python bindings for the C++ implementation of the Mapbox Earcut
44       library, which provides very fast and quite robust triangulation of 2D
45       polygons.
46     '';
47     maintainers = [ ];
48   };