about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/python-modules/img2pdf/default.nix
blob: 48557d34bc8644102f8ef7d3744b4c44bf034123 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
{ lib, pillow, fetchPypi, buildPythonPackage, isPy27, pikepdf }:

buildPythonPackage rec {
  pname = "img2pdf";
  version = "0.4.2";
  disabled = isPy27;

  src = fetchPypi {
    inherit pname version;
    sha256 = "sha256-qs9YZQPWET5Tv7A8hcheVGw4RBOlbBXd0I7lHIZEeaI=";
  };

  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 ];
  };
}