From 39c135b1455115a94eca6072244c9072cfd18fa9 Mon Sep 17 00:00:00 2001 From: twitchy0 Date: Fri, 29 Mar 2024 21:56:29 -0400 Subject: [PATCH] imgkit: init at 1.2.3 --- .../python-modules/imgkit/default.nix | 25 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 ++ 2 files changed, 27 insertions(+) create mode 100644 pkgs/development/python-modules/imgkit/default.nix diff --git a/pkgs/development/python-modules/imgkit/default.nix b/pkgs/development/python-modules/imgkit/default.nix new file mode 100644 index 0000000000000..431b3b39152f7 --- /dev/null +++ b/pkgs/development/python-modules/imgkit/default.nix @@ -0,0 +1,25 @@ +{ lib, python3Packages, fetchPypi, six}: + +python3Packages.buildPythonPackage rec { + pname = "imgkit"; + version = "1.2.3"; + + src = fetchPypi { + inherit pname version; + hash = "sha256-ya3pPQKBJ3yJi5g8lZ8R8MwctKX+0URWDfpNJz+1DNg="; + }; + + propagatedBuildInputs = [ six ]; + nativeBuildInputs = [ python3Packages.setuptools-scm ]; + + pythonImportsCheck = [ "imgkit" ]; + + pyproject = true; + + meta = with lib; { + homepage = "https://github.com/jarrekk/imgkit"; + description = "Wkhtmltopdf python wrapper to convert html to image using the webkit rendering engine and qt"; + license = licenses.mit; + maintainers = with maintainers; [ twitchy0 ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 545fe4a7dae37..2827501f5b1f0 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -5592,6 +5592,8 @@ self: super: with self; { imgdiff = callPackage ../development/python-modules/imgdiff { }; + imgkit = callPackage ../development/python-modules/imgkit { }; + imgsize = callPackage ../development/python-modules/imgsize { }; imgtool = callPackage ../development/python-modules/imgtool { };