depot/third_party/nixpkgs/pkgs/development/python-modules/tilequant/default.nix
Default email 587713944a Project import generated by Copybara.
GitOrigin-RevId: 6143fc5eeb9c4f00163267708e26191d1e918932
2024-04-21 17:54:59 +02:00

57 lines
1.1 KiB
Nix

{ lib
, buildPythonPackage
, click
, fetchPypi
, ordered-set
, pillow
, pythonOlder
, pythonRelaxDepsHook
, setuptools
, setuptools-dso
, sortedcollections
}:
buildPythonPackage rec {
pname = "tilequant";
version = "1.1.0";
pyproject = true;
disabled = pythonOlder "3.9";
src = fetchPypi {
inherit pname version;
hash = "sha256-uW1g3nlT6Y+1beifo/MOlGxsGL7on/jcAROxSddySHk=";
};
pythonRelaxDeps = [
"pillow"
];
build-system = [
pythonRelaxDepsHook
setuptools
];
dependencies = [
click
ordered-set
pillow
sortedcollections
setuptools-dso
];
doCheck = false; # there are no tests
pythonImportsCheck = [
"tilequant"
];
meta = with lib; {
description = "Tool for quantizing image colors using tile-based palette restrictions";
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";
};
}