Commit 7cf7c9c6 authored by Fabian Affolter's avatar Fabian Affolter
Browse files

python311Packages.tilequant: refactor

parent 4f28c0b7
Loading
Loading
Loading
Loading
+12 −9
Original line number Diff line number Diff line
{ lib
, buildPythonPackage
, fetchPypi
, click
, fetchPypi
, ordered-set
, pillow
, pythonOlder
, pythonRelaxDepsHook
, pillow
, sortedcollections
, setuptools
, setuptools-dso
, sortedcollections
}:

buildPythonPackage rec {
@@ -22,15 +23,16 @@ buildPythonPackage rec {
    hash = "sha256-uW1g3nlT6Y+1beifo/MOlGxsGL7on/jcAROxSddySHk=";
  };

  nativeBuildInputs = [
    pythonRelaxDepsHook
  ];

  pythonRelaxDeps = [
    "pillow"
  ];

  propagatedBuildInputs = [
  build-system = [
    pythonRelaxDepsHook
    setuptools
  ];

  dependencies = [
    click
    ordered-set
    pillow
@@ -46,9 +48,10 @@ buildPythonPackage rec {

  meta = with lib; {
    description = "Tool for quantizing image colors using tile-based palette restrictions";
    mainProgram = "tilequant";
    homepage = "https://github.com/SkyTemple/tilequant";
    changelog = "https://github.com/SkyTemple/tilequant/releases/tag/${version}";
    license = licenses.gpl3Plus;
    maintainers = with maintainers; [ marius851000 xfix ];
    mainProgram = "tilequant";
  };
}