nixpkgs/pkgs/development/python-modules/img2pdf/default.nix

29 lines
641 B
Nix
Raw Normal View History

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