Files
nixpkgs/pkgs/development/python-modules/haishoku/default.nix
T
2025-12-16 17:21:32 +08:00

41 lines
819 B
Nix

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