2020-09-25 04:45:31 +00:00
|
|
|
{ lib, pillow, fetchPypi, buildPythonPackage, isPy27, pikepdf }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2020-07-18 16:06:22 +00:00
|
|
|
buildPythonPackage rec {
|
2020-04-24 23:36:52 +00:00
|
|
|
pname = "img2pdf";
|
2021-10-14 00:43:12 +00:00
|
|
|
version = "0.4.2";
|
2020-07-18 16:06:22 +00:00
|
|
|
disabled = isPy27;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2021-10-14 00:43:12 +00:00
|
|
|
sha256 = "sha256-qs9YZQPWET5Tv7A8hcheVGw4RBOlbBXd0I7lHIZEeaI=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
2020-09-25 04:45:31 +00:00
|
|
|
pikepdf
|
2020-04-24 23:36:52 +00:00
|
|
|
pillow
|
|
|
|
];
|
|
|
|
|
2021-02-13 14:23:35 +00:00
|
|
|
# no tests exectuted
|
|
|
|
doCheck = false;
|
|
|
|
|
2020-07-18 16:06:22 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|