diff --git a/pkgs/development/python-modules/image-go-nord/default.nix b/pkgs/development/python-modules/image-go-nord/default.nix new file mode 100644 index 000000000000..a8fb5df9433d --- /dev/null +++ b/pkgs/development/python-modules/image-go-nord/default.nix @@ -0,0 +1,25 @@ +{ lib, buildPythonPackage, fetchFromGitHub, pillow, pytestCheckHook, pythonOlder }: + +buildPythonPackage rec { + pname = "image-go-nord"; + version = "0.1.5"; + disabled = pythonOlder "3.7"; + + src = fetchFromGitHub { + owner = "Schrodinger-Hat"; + repo = "ImageGoNord-pip"; + rev = "v${version}"; + sha256 = "sha256-O34COlGsXExJShRd2zvhdescNfYXWLNuGpkjcH3koPU="; + }; + + propagatedBuildInputs = [ pillow ]; + + checkInputs = [ pytestCheckHook ]; + + meta = with lib; { + description = "A tool that can convert rgb images to nordtheme palette"; + homepage = "https://github.com/Schrodinger-Hat/ImageGoNord-pip"; + license = licenses.mit; + maintainers = with maintainers; [ kranzes ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 573d73ba7cf6..cf233457ca4b 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -3628,6 +3628,8 @@ in { imageio-ffmpeg = callPackage ../development/python-modules/imageio-ffmpeg { }; + image-go-nord = callPackage ../development/python-modules/image-go-nord { }; + image-match = callPackage ../development/python-modules/image-match { }; imagesize = callPackage ../development/python-modules/imagesize { };