python311Packages.tilequant: refactor

This commit is contained in:
Fabian Affolter 2024-03-28 13:00:00 +01:00
parent 4f28c0b741
commit 7cf7c9c63b

View File

@ -1,13 +1,14 @@
{ lib { lib
, buildPythonPackage , buildPythonPackage
, fetchPypi
, click , click
, fetchPypi
, ordered-set , ordered-set
, pillow
, pythonOlder , pythonOlder
, pythonRelaxDepsHook , pythonRelaxDepsHook
, pillow , setuptools
, sortedcollections
, setuptools-dso , setuptools-dso
, sortedcollections
}: }:
buildPythonPackage rec { buildPythonPackage rec {
@ -22,15 +23,16 @@ buildPythonPackage rec {
hash = "sha256-uW1g3nlT6Y+1beifo/MOlGxsGL7on/jcAROxSddySHk="; hash = "sha256-uW1g3nlT6Y+1beifo/MOlGxsGL7on/jcAROxSddySHk=";
}; };
nativeBuildInputs = [
pythonRelaxDepsHook
];
pythonRelaxDeps = [ pythonRelaxDeps = [
"pillow" "pillow"
]; ];
propagatedBuildInputs = [ build-system = [
pythonRelaxDepsHook
setuptools
];
dependencies = [
click click
ordered-set ordered-set
pillow pillow
@ -46,9 +48,10 @@ buildPythonPackage rec {
meta = with lib; { meta = with lib; {
description = "Tool for quantizing image colors using tile-based palette restrictions"; description = "Tool for quantizing image colors using tile-based palette restrictions";
mainProgram = "tilequant";
homepage = "https://github.com/SkyTemple/tilequant"; homepage = "https://github.com/SkyTemple/tilequant";
changelog = "https://github.com/SkyTemple/tilequant/releases/tag/${version}";
license = licenses.gpl3Plus; license = licenses.gpl3Plus;
maintainers = with maintainers; [ marius851000 xfix ]; maintainers = with maintainers; [ marius851000 xfix ];
mainProgram = "tilequant";
}; };
} }