3
0
Fork 0
forked from mirrors/nixpkgs

Merge pull request #127081 from dotlambda/colorthief-init

This commit is contained in:
Sandro 2021-06-16 15:24:19 +02:00 committed by GitHub
commit 205cbe249d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 37 additions and 1 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

@ -130,7 +130,7 @@
"cmus" = ps: with ps; [ ]; # missing inputs: pycmus
"co2signal" = ps: with ps; [ ]; # missing inputs: co2signal
"coinbase" = ps: with ps; [ ]; # missing inputs: coinbase
"color_extractor" = ps: with ps; [ ]; # missing inputs: colorthief
"color_extractor" = ps: with ps; [ colorthief ];
"comed_hourly_pricing" = ps: with ps; [ ];
"comfoconnect" = ps: with ps; [ pycomfoconnect ];
"command_line" = ps: with ps; [ ];

View file

@ -327,6 +327,7 @@ in with py.pkgs; buildPythonApplication rec {
"climate"
"cloud"
"cloudflare"
"color_extractor"
"comfoconnect"
"command_line"
"compensation"

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 { };