Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 numpy, 6 pybind11, 7 pytestCheckHook, 8 setuptools, 9 pythonOlder, 10}: 11 12buildPythonPackage rec { 13 pname = "mapbox-earcut"; 14 version = "1.0.1"; 15 format = "setuptools"; 16 17 disabled = pythonOlder "3.7"; 18 19 src = fetchFromGitHub { 20 owner = "skogler"; 21 repo = "mapbox_earcut_python"; 22 rev = "refs/tags/v${version}"; 23 hash = "sha256-+Vxvo++bkoCsJFmt/u1eaqhgpz8Uddz06iIi66ju+MQ="; 24 }; 25 26 nativeBuildInputs = [ 27 setuptools 28 pybind11 29 ]; 30 31 propagatedBuildInputs = [ numpy ]; 32 33 nativeCheckInputs = [ pytestCheckHook ]; 34 35 pythonImportsCheck = [ "mapbox_earcut" ]; 36 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 }; 49}