depot/third_party/nixpkgs/pkgs/development/python-modules/tilequant/default.nix
Default email 60f07311b9 Project import generated by Copybara.
GitOrigin-RevId: f8e2ebd66d097614d51a56a755450d4ae1632df1
2024-02-06 17:22:34 -08:00

53 lines
953 B
Nix

{ lib
, buildPythonPackage
, fetchPypi
, click
, ordered-set
, pythonOlder
, pythonRelaxDepsHook
, pillow
, sortedcollections
, setuptools_dso
}:
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=";
};
nativeBuildInputs = [
pythonRelaxDepsHook
];
pythonRelaxDeps = [
"pillow"
];
propagatedBuildInputs = [
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";
license = licenses.gpl3Plus;
maintainers = with maintainers; [ marius851000 xfix ];
};
}