img2pdf: make a python package

This commit is contained in:
Symphorien Gibol 2020-07-16 12:00:00 +00:00 committed by Dmitry Kalinkin
parent ba4f0c63e4
commit 293d7c3933
3 changed files with 7 additions and 6 deletions

View File

@ -1,10 +1,9 @@
{ stdenv, python3Packages }:
{ lib, pillow, fetchPypi, buildPythonPackage, isPy27 }:
with python3Packages;
buildPythonApplication rec {
buildPythonPackage rec {
pname = "img2pdf";
version = "0.3.6";
disabled = isPy27;
src = fetchPypi {
inherit pname version;
@ -15,7 +14,7 @@ buildPythonApplication rec {
pillow
];
meta = with stdenv.lib; {
meta = with lib; {
description = "Convert images to PDF via direct JPEG inclusion";
homepage = "https://gitlab.mister-muffin.de/josch/img2pdf";
license = licenses.lgpl2;

View File

@ -20590,7 +20590,7 @@ in
inherit (nodePackages) imapnotify;
img2pdf = callPackage ../applications/misc/img2pdf { };
img2pdf = with python3Packages; toPythonApplication img2pdf;
imgcat = callPackage ../applications/graphics/imgcat { };

View File

@ -2433,6 +2433,8 @@ in {
impacket = callPackage ../development/python-modules/impacket { };
img2pdf = callPackage ../development/python-modules/img2pdf { };
jsonlines = callPackage ../development/python-modules/jsonlines { };
json-merge-patch = callPackage ../development/python-modules/json-merge-patch { };