From 93cfc1a99f2159b7d9e1e859f429355d4e844931 Mon Sep 17 00:00:00 2001 From: Ilan Joselevich Date: Wed, 27 Oct 2021 16:48:57 +0300 Subject: [PATCH] python39Packages.image-go-nord: init at 0.1.5 --- .../python-modules/image-go-nord/default.nix | 25 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 ++ 2 files changed, 27 insertions(+) create mode 100644 pkgs/development/python-modules/image-go-nord/default.nix 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 { };