depot/third_party/nixpkgs/pkgs/development/python-modules/img2pdf/default.nix
Default email 3e2acf8aff Project import generated by Copybara.
GitOrigin-RevId: d42cd445dde587e9a993cd9434cb43da07c4c5de
2021-05-20 18:08:51 -05:00

28 lines
641 B
Nix

{ lib, pillow, fetchPypi, buildPythonPackage, isPy27, pikepdf }:
buildPythonPackage rec {
pname = "img2pdf";
version = "0.4.1";
disabled = isPy27;
src = fetchPypi {
inherit pname version;
sha256 = "sha256-OKEinKhLIR13gtHWWtclGpeBvyT29kl8c4x1X8/tVVI=";
};
propagatedBuildInputs = [
pikepdf
pillow
];
# no tests exectuted
doCheck = false;
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 ];
};
}