From 619fc8f27878d581de363b369171b9a75ebe7f12 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Sun, 4 Dec 2022 18:38:19 +0100 Subject: [PATCH] python310Packages.mapbox-earcut: add changelog to meta --- .../python-modules/mapbox-earcut/default.nix | 24 +++++++++++++++---- 1 file changed, 19 insertions(+), 5 deletions(-) diff --git a/pkgs/development/python-modules/mapbox-earcut/default.nix b/pkgs/development/python-modules/mapbox-earcut/default.nix index 226567b272ce..c7dba7a80d8c 100644 --- a/pkgs/development/python-modules/mapbox-earcut/default.nix +++ b/pkgs/development/python-modules/mapbox-earcut/default.nix @@ -6,29 +6,43 @@ , pybind11 , pytestCheckHook , setuptools +, pythonOlder }: buildPythonPackage rec { pname = "mapbox-earcut"; version = "1.0.1"; + format = "setuptools"; + + disabled = pythonOlder "3.7"; src = fetchFromGitHub { owner = "skogler"; repo = "mapbox_earcut_python"; rev = "refs/tags/v${version}"; - sha256 = "sha256-+Vxvo++bkoCsJFmt/u1eaqhgpz8Uddz06iIi66ju+MQ="; + hash = "sha256-+Vxvo++bkoCsJFmt/u1eaqhgpz8Uddz06iIi66ju+MQ="; }; - nativeBuildInputs = [ setuptools pybind11 ]; + nativeBuildInputs = [ + setuptools + pybind11 + ]; - propagatedBuildInputs = [ numpy ]; + propagatedBuildInputs = [ + numpy + ]; - checkInputs = [ pytestCheckHook ]; + checkInputs = [ + pytestCheckHook + ]; - pythonImportsCheck = [ "mapbox_earcut" ]; + 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 = ''