diff options
author | Symphorien Gibol <symphorien+git@xlumurb.eu> | 2020-07-16 12:00:00 +0000 |
---|---|---|
committer | Dmitry Kalinkin <dmitry.kalinkin@gmail.com> | 2020-07-18 12:04:18 -0400 |
commit | 293d7c393355f58f884459ddd40e7464526e2398 (patch) | |
tree | 6283a6ad1d15f43e72695171823d4ac357c22fa5 /pkgs/development/python-modules/img2pdf | |
parent | ba4f0c63e4851a12f0322a1ad9105e9195af0ad2 (diff) |
img2pdf: make a python package
Diffstat (limited to 'pkgs/development/python-modules/img2pdf')
-rw-r--r-- | pkgs/development/python-modules/img2pdf/default.nix | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/img2pdf/default.nix b/pkgs/development/python-modules/img2pdf/default.nix new file mode 100644 index 0000000000000..2fa46c2ed9d4d --- /dev/null +++ b/pkgs/development/python-modules/img2pdf/default.nix @@ -0,0 +1,24 @@ +{ lib, pillow, fetchPypi, buildPythonPackage, isPy27 }: + +buildPythonPackage rec { + pname = "img2pdf"; + version = "0.3.6"; + disabled = isPy27; + + src = fetchPypi { + inherit pname version; + sha256 = "1yx0ljbg7phpix507wq584qvspp2jgax7flpp1148pxpc2d51mcc"; + }; + + propagatedBuildInputs = [ + pillow + ]; + + meta = with lib; { + description = "Convert images to PDF via direct JPEG inclusion"; + homepage = "https://gitlab.mister-muffin.de/josch/img2pdf"; + license = licenses.lgpl2; + platforms = platforms.unix; + maintainers = [ maintainers.veprbl ]; + }; +} |