blob: c0d1826935535437cb1d3261003f5cd89d1f99ef (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
|
{ lib
, buildPythonPackage
, fetchFromGitHub
, gitpython
, click
, ordered-set
, pythonOlder
, pillow
, sortedcollections
}:
buildPythonPackage rec {
pname = "tilequant";
version = "0.4.1.post0";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "SkyTemple";
repo = pname;
rev = version;
hash = "sha256-7vU/AYnX7deOH3PjrseRIj9BUJMWzDlwR3UcMpBRyfc=";
fetchSubmodules = true;
};
buildInputs = [
gitpython
];
propagatedBuildInputs = [
click
ordered-set
pillow
sortedcollections
];
doCheck = false; # there are no tests
pythonImportsCheck = [
"skytemple_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 ];
};
}
|