Something went wrong. Try again.
lol
Something went wrong. Try again.
1.3 kB · 65 lines
Nix
at master
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566{ 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 = [ ]; };}