python3Packages.mapbox-earcut: init at 2.2.2
This commit is contained in:
parent
9c3e927949
commit
c2755427d6
41
pkgs/development/python-modules/mapbox-earcut/default.nix
Normal file
41
pkgs/development/python-modules/mapbox-earcut/default.nix
Normal file
@ -0,0 +1,41 @@
|
||||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
, fetchFromGitHub
|
||||
, numpy
|
||||
, pybind11
|
||||
, pytestCheckHook
|
||||
, setuptools
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "mapbox-earcut";
|
||||
version = "1.0.0";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "skogler";
|
||||
repo = "mapbox_earcut_python";
|
||||
rev = "v${version}";
|
||||
sha256 = "m4q2qTL55fkdi3hm75C3/XV9SUQkpJS+B5SEgpPEctk=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ setuptools pybind11 ];
|
||||
|
||||
propagatedBuildInputs = [ numpy ];
|
||||
|
||||
checkInputs = [ pytestCheckHook ];
|
||||
|
||||
pythonImportsCheck = [ "mapbox_earcut" ];
|
||||
|
||||
meta = with lib; {
|
||||
homepage = "https://github.com/skogler/mapbox_earcut_python";
|
||||
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 = with maintainers; [ friedelino ];
|
||||
};
|
||||
}
|
@ -5121,6 +5121,8 @@ in {
|
||||
|
||||
mapbox = callPackage ../development/python-modules/mapbox { };
|
||||
|
||||
mapbox-earcut = callPackage ../development/python-modules/mapbox-earcut { };
|
||||
|
||||
mariadb = callPackage ../development/python-modules/mariadb { };
|
||||
|
||||
marisa-trie = callPackage ../development/python-modules/marisa-trie { };
|
||||
|
Loading…
Reference in New Issue
Block a user