2022-12-17 10:02:37 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, click
|
2024-04-21 15:54:59 +00:00
|
|
|
, fetchPypi
|
2022-12-17 10:02:37 +00:00
|
|
|
, ordered-set
|
2024-04-21 15:54:59 +00:00
|
|
|
, pillow
|
2022-12-17 10:02:37 +00:00
|
|
|
, pythonOlder
|
2024-02-07 01:22:34 +00:00
|
|
|
, pythonRelaxDepsHook
|
2024-04-21 15:54:59 +00:00
|
|
|
, setuptools
|
|
|
|
, setuptools-dso
|
2022-12-17 10:02:37 +00:00
|
|
|
, sortedcollections
|
|
|
|
}:
|
2021-06-04 09:07:49 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "tilequant";
|
2024-01-02 11:29:13 +00:00
|
|
|
version = "1.1.0";
|
|
|
|
pyproject = true;
|
2022-12-17 10:02:37 +00:00
|
|
|
|
2024-01-02 11:29:13 +00:00
|
|
|
disabled = pythonOlder "3.9";
|
2021-06-04 09:07:49 +00:00
|
|
|
|
2024-01-02 11:29:13 +00:00
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
|
|
|
hash = "sha256-uW1g3nlT6Y+1beifo/MOlGxsGL7on/jcAROxSddySHk=";
|
2021-06-04 09:07:49 +00:00
|
|
|
};
|
|
|
|
|
2024-02-07 01:22:34 +00:00
|
|
|
pythonRelaxDeps = [
|
|
|
|
"pillow"
|
|
|
|
];
|
|
|
|
|
2024-04-21 15:54:59 +00:00
|
|
|
build-system = [
|
|
|
|
pythonRelaxDepsHook
|
|
|
|
setuptools
|
|
|
|
];
|
|
|
|
|
|
|
|
dependencies = [
|
2022-12-17 10:02:37 +00:00
|
|
|
click
|
|
|
|
ordered-set
|
|
|
|
pillow
|
|
|
|
sortedcollections
|
2024-04-21 15:54:59 +00:00
|
|
|
setuptools-dso
|
2022-12-17 10:02:37 +00:00
|
|
|
];
|
2021-06-04 09:07:49 +00:00
|
|
|
|
|
|
|
doCheck = false; # there are no tests
|
2022-12-17 10:02:37 +00:00
|
|
|
|
|
|
|
pythonImportsCheck = [
|
2024-01-02 11:29:13 +00:00
|
|
|
"tilequant"
|
2022-12-17 10:02:37 +00:00
|
|
|
];
|
2021-06-04 09:07:49 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Tool for quantizing image colors using tile-based palette restrictions";
|
2022-12-17 10:02:37 +00:00
|
|
|
homepage = "https://github.com/SkyTemple/tilequant";
|
2024-04-21 15:54:59 +00:00
|
|
|
changelog = "https://github.com/SkyTemple/tilequant/releases/tag/${version}";
|
2021-06-04 09:07:49 +00:00
|
|
|
license = licenses.gpl3Plus;
|
2024-05-15 15:35:15 +00:00
|
|
|
maintainers = with maintainers; [ marius851000 ];
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "tilequant";
|
2021-06-04 09:07:49 +00:00
|
|
|
};
|
|
|
|
}
|