2020-08-17 05:39:53 +01:00
|
|
|
{ lib, pillow, fetchPypi, buildPythonPackage, isPy27, pikepdf }:
|
2018-08-09 22:13:39 +01:00
|
|
|
|
2020-07-16 13:00:00 +01:00
|
|
|
buildPythonPackage rec {
|
2018-08-09 22:13:39 +01:00
|
|
|
pname = "img2pdf";
|
2021-05-12 05:08:50 +01:00
|
|
|
version = "0.4.1";
|
2020-07-16 13:00:00 +01:00
|
|
|
disabled = isPy27;
|
2018-08-09 22:13:39 +01:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2021-05-12 05:08:50 +01:00
|
|
|
sha256 = "sha256-OKEinKhLIR13gtHWWtclGpeBvyT29kl8c4x1X8/tVVI=";
|
2018-08-09 22:13:39 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
2020-08-17 05:39:53 +01:00
|
|
|
pikepdf
|
2018-08-09 22:13:39 +01:00
|
|
|
pillow
|
|
|
|
];
|
|
|
|
|
2021-02-12 19:02:02 +00:00
|
|
|
# no tests exectuted
|
|
|
|
doCheck = false;
|
|
|
|
|
2020-07-16 13:00:00 +01:00
|
|
|
meta = with lib; {
|
2018-08-09 22:13:39 +01:00
|
|
|
description = "Convert images to PDF via direct JPEG inclusion";
|
2020-04-09 21:25:11 +01:00
|
|
|
homepage = "https://gitlab.mister-muffin.de/josch/img2pdf";
|
2018-08-09 22:13:39 +01:00
|
|
|
license = licenses.lgpl2;
|
|
|
|
platforms = platforms.unix;
|
|
|
|
maintainers = [ maintainers.veprbl ];
|
|
|
|
};
|
|
|
|
}
|