Merge pull request #127081 from dotlambda/colorthief-init
This commit is contained in:
commit
205cbe249d
4 changed files with 37 additions and 1 deletions
33
pkgs/development/python-modules/colorthief/default.nix
Normal file
33
pkgs/development/python-modules/colorthief/default.nix
Normal 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 ];
|
||||
};
|
||||
}
|
|
@ -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; [ ];
|
||||
|
|
|
@ -327,6 +327,7 @@ in with py.pkgs; buildPythonApplication rec {
|
|||
"climate"
|
||||
"cloud"
|
||||
"cloudflare"
|
||||
"color_extractor"
|
||||
"comfoconnect"
|
||||
"command_line"
|
||||
"compensation"
|
||||
|
|
|
@ -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 { };
|
||||
|
|
Loading…
Reference in a new issue