Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

imgkit: init at 1.2.3 #300145

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 25 additions & 0 deletions pkgs/development/python-modules/imgkit/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
{ lib, python3Packages, fetchPypi, six}:

python3Packages.buildPythonPackage rec {
pname = "imgkit";
version = "1.2.3";

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
pyproject = true;

src = fetchPypi {
inherit pname version;
hash = "sha256-ya3pPQKBJ3yJi5g8lZ8R8MwctKX+0URWDfpNJz+1DNg=";
};

propagatedBuildInputs = [ six ];
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
propagatedBuildInputs = [ six ];
dependencies = [ six ];

nativeBuildInputs = [ python3Packages.setuptools-scm ];
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
nativeBuildInputs = [ python3Packages.setuptools-scm ];
build-system = [ 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 ];
};
Comment on lines +19 to +24
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
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 ];
};
meta = {
homepage = "https://github.com/jarrekk/imgkit";
description = "Wkhtmltopdf Python wrapper to convert HTML to image using WebKit";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ twitchy0 ];
};

}
2 changes: 2 additions & 0 deletions pkgs/top-level/python-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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 { };
Expand Down