Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
1.3 kB · 64 lines
Nix
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465{ lib, buildPythonPackage, fetchFromGitHub, pythonOlder,
# build-system cmake, ninja, pybind11, scikit-build-core,
# dependencies numpy,
# tests pytestCheckHook,}:
buildPythonPackage rec { pname = "mapbox-earcut"; version = "1.0.3"; pyproject = true;
disabled = pythonOlder "3.7";
src = fetchFromGitHub { owner = "skogler"; repo = "mapbox_earcut_python"; tag = "v${version}"; hash = "sha256-2dUZ78yWSudjozV2zIRNQgUeaNrkL+NXnF51q4T+dRU="; };
build-system = [ pybind11 scikit-build-core ];
nativeBuildInputs = [ cmake ninja ];
dontUseCmakeConfigure = true;
dependencies = [ numpy ];
nativeCheckInputs = [ pytestCheckHook ];
pythonImportsCheck = [ "mapbox_earcut" ];
meta = with lib; { homepage = "https://github.com/skogler/mapbox_earcut_python"; changelog = "https://github.com/skogler/mapbox_earcut_python/releases/tag/${src.tag}"; 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 = [ ]; };}