blob: d8f066185a251b4e6d5881bd38e4f89c40a5587f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
|
{
lib,
buildPythonPackage,
fetchFromGitHub,
setuptools,
nix-update-script,
pillow,
}:
buildPythonPackage rec {
pname = "haishoku";
version = "1.1.8";
pyproject = true;
src = fetchFromGitHub {
owner = "LanceGin";
repo = "haishoku";
tag = "v${version}";
hash = "sha256-LSoZopCaM5vbknGS9gG13OZIgghgqJvPtktUkBCH04Q=";
};
build-system = [ setuptools ];
dependencies = [ pillow ];
# no test
doCheck = false;
pythonImportsCheck = [ "haishoku" ];
passthru.updateScript = nix-update-script { };
meta = {
description = "Development tool for grabbing the dominant color or representative color palette from an image";
homepage = "https://github.com/LanceGin/haishoku";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ moraxyc ];
};
}
|