1 { lib, buildPythonPackage, fetchFromGitHub, GitPython, click, ordered-set, pillow, sortedcollections }:
4 aikku93-tilequant = fetchFromGitHub {
6 repo = "aikku93-tilequant";
7 rev = "6604e0906edff384b6c8d4cde03e6601731f66fd";
8 sha256 = "0w19h3n2i0xriqsy0b0rifjgbv4hqd7gl78fw0cappkrdykij5r1";
11 buildPythonPackage rec {
13 version = "0.4.0.post0";
15 src = fetchFromGitHub {
19 sha256 = "189af203iay3inj1bbgm3hh1fshn879bcm28ypbvfp27fy7j5b25";
23 cp -R --no-preserve=mode ${aikku93-tilequant} __aikku93_tilequant
26 buildInputs = [ GitPython ];
27 propagatedBuildInputs = [ click ordered-set pillow sortedcollections ];
29 doCheck = false; # there are no tests
30 pythonImportsCheck = [ "skytemple_tilequant" ];
33 homepage = "https://github.com/SkyTemple/tilequant";
34 description = "Tool for quantizing image colors using tile-based palette restrictions";
35 license = licenses.gpl3Plus;
36 maintainers = with maintainers; [ xfix ];