159e378cbb
GitOrigin-RevId: c04d5652cfa9742b1d519688f65d1bbccea9eb7e
49 lines
1.1 KiB
Nix
49 lines
1.1 KiB
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
numpy,
|
|
pybind11,
|
|
pytestCheckHook,
|
|
setuptools,
|
|
pythonOlder,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "mapbox-earcut";
|
|
version = "1.0.2";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "skogler";
|
|
repo = "mapbox_earcut_python";
|
|
rev = "refs/tags/v${version}";
|
|
hash = "sha256-xR+nO5xdoDUhWZM19DOid3lsEXBood5NofQ0SezJ9OE=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
setuptools
|
|
pybind11
|
|
];
|
|
|
|
propagatedBuildInputs = [ 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/v${version}";
|
|
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 = [ ];
|
|
};
|
|
}
|