Files
nixpkgs/pkgs/development/python-modules/mapbox-earcut/default.nix
T
Martin Weinelt 3c2243471e python3Packages.mapbox-earcut: 1.0.3 -> 2.0.0
https://github.com/skogler/mapbox_earcut_python/releases/tag/v2.0.0

This commit was automatically generated using update-python-libraries.
2026-02-01 17:19:30 +01:00

66 lines
1.2 KiB
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
# build-system
cmake,
ninja,
nanobind,
scikit-build-core,
# dependencies
numpy,
# tests
pytestCheckHook,
}:
buildPythonPackage rec {
pname = "mapbox-earcut";
version = "2.0.0";
pyproject = true;
src = fetchFromGitHub {
owner = "skogler";
repo = "mapbox_earcut_python";
tag = "v${version}";
hash = "sha256-R5YDJbfDNf6jAvG3VJQMYay6i8dw616SUs0tPgrJt6I=";
};
build-system = [
nanobind
scikit-build-core
];
nativeBuildInputs = [
cmake
ninja
];
dontUseCmakeConfigure = true;
dependencies = [ numpy ];
nativeCheckInputs = [ pytestCheckHook ];
preCheck = ''
rm -rf mapbox_earcut
'';
pythonImportsCheck = [ "mapbox_earcut" ];
meta = {
homepage = "https://github.com/skogler/mapbox_earcut_python";
changelog = "https://github.com/skogler/mapbox_earcut_python/releases/tag/${src.tag}";
license = lib.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 = [ ];
};
}