3
0
Fork 0
forked from mirrors/nixpkgs

pythonPackages.colorthief: init at 0.2.1

This commit is contained in:
Robert Schütz 2021-06-16 14:22:44 +02:00
parent ce2c9bd765
commit f361a31f75
2 changed files with 35 additions and 0 deletions

View file

@ -0,0 +1,33 @@
{ lib
, buildPythonPackage
, fetchFromGitHub
, pillow
}:
buildPythonPackage rec {
pname = "colorthief";
version = "0.2.1";
src = fetchFromGitHub {
owner = "fengsp";
repo = "color-thief-py";
rev = version;
sha256 = "0lzpflal1iqbj4k7hayss5z024qf2sn8c3wxw03a0mgxg06ca2hm";
};
propagatedBuildInputs = [
pillow
];
# no tests implemented
doCheck = false;
pythonImportsCheck = [ "colorthief" ];
meta = with lib; {
description = "Python module for grabbing the color palette from an image";
homepage = "https://github.com/fengsp/color-thief-py";
license = licenses.bsd3;
maintainers = with maintainers; [ dotlambda ];
};
}

View file

@ -1563,6 +1563,8 @@ in {
colorspacious = callPackage ../development/python-modules/colorspacious { };
colorthief = callPackage ../development/python-modules/colorthief { };
colour = callPackage ../development/python-modules/colour { };
commandparse = callPackage ../development/python-modules/commandparse { };