diff --git a/pkgs/development/python-modules/haishoku/default.nix b/pkgs/development/python-modules/haishoku/default.nix new file mode 100644 index 000000000000..d8f066185a25 --- /dev/null +++ b/pkgs/development/python-modules/haishoku/default.nix @@ -0,0 +1,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 ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 8f7d87b71b26..a9e85bf04b9c 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -6670,6 +6670,8 @@ self: super: with self; { hacking = callPackage ../development/python-modules/hacking { }; + haishoku = callPackage ../development/python-modules/haishoku { }; + hakuin = callPackage ../development/python-modules/hakuin { }; halide =