1{ lib
2, buildPythonPackage
3, fetchFromGitHub
4, pillow
5}:
6
7buildPythonPackage rec {
8 pname = "colorthief";
9 version = "0.2.1";
10
11 src = fetchFromGitHub {
12 owner = "fengsp";
13 repo = "color-thief-py";
14 rev = version;
15 sha256 = "0lzpflal1iqbj4k7hayss5z024qf2sn8c3wxw03a0mgxg06ca2hm";
16 };
17
18 propagatedBuildInputs = [
19 pillow
20 ];
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}