1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 pillow,
6}:
7
8buildPythonPackage rec {
9 pname = "colorthief";
10 version = "0.2.1";
11 format = "setuptools";
12
13 src = fetchFromGitHub {
14 owner = "fengsp";
15 repo = "color-thief-py";
16 rev = version;
17 sha256 = "0lzpflal1iqbj4k7hayss5z024qf2sn8c3wxw03a0mgxg06ca2hm";
18 };
19
20 propagatedBuildInputs = [ pillow ];
21
22 # no tests implemented
23 doCheck = false;
24
25 pythonImportsCheck = [ "colorthief" ];
26
27 meta = with lib; {
28 description = "Python module for grabbing the color palette from an image";
29 homepage = "https://github.com/fengsp/color-thief-py";
30 license = licenses.bsd3;
31 maintainers = with maintainers; [ dotlambda ];
32 };
33}