at master 1.0 kB view raw
1{ 2 lib, 3 buildPythonPackage, 4 click, 5 fetchPypi, 6 ordered-set, 7 pillow, 8 pythonOlder, 9 setuptools, 10 setuptools-dso, 11 sortedcollections, 12}: 13 14buildPythonPackage rec { 15 pname = "tilequant"; 16 version = "1.2.0"; 17 pyproject = true; 18 19 disabled = pythonOlder "3.9"; 20 21 src = fetchPypi { 22 inherit pname version; 23 hash = "sha256-0i7brL/hn8SOj3q/rpOcOQ9QW/4Mew2fr0Y42k4K9UI="; 24 }; 25 26 pythonRelaxDeps = [ "pillow" ]; 27 28 build-system = [ 29 setuptools 30 ]; 31 32 dependencies = [ 33 click 34 ordered-set 35 pillow 36 sortedcollections 37 setuptools-dso 38 ]; 39 40 doCheck = false; # there are no tests 41 42 pythonImportsCheck = [ "tilequant" ]; 43 44 meta = with lib; { 45 description = "Tool for quantizing image colors using tile-based palette restrictions"; 46 homepage = "https://github.com/SkyTemple/tilequant"; 47 changelog = "https://github.com/SkyTemple/tilequant/releases/tag/${version}"; 48 license = licenses.gpl3Plus; 49 maintainers = with maintainers; [ marius851000 ]; 50 mainProgram = "tilequant"; 51 }; 52}