@@ -1,4 +1,19 @@
1−{ lib, pillow, fetchPypi, buildPythonPackage, isPy27, pikepdf }:
1+{ lib
2+, buildPythonPackage
3+, isPy27
4+, fetchPypi
5+, pikepdf
6+, pillow
7+, exiftool
8+, ghostscript
9+, imagemagick
10+, mupdf
11+, netpbm
12+, numpy
13+, poppler_utils
14+, pytestCheckHook
15+, scipy
16+}:
217
318buildPythonPackage rec {
419 pname = "img2pdf";
@@ -15,14 +30,32 @@ buildPythonPackage rec {
1530 pillow
1631 ];
1732
18− # no tests exectuted
19− doCheck = false;
33+ checkInputs = [
34+ exiftool
35+ ghostscript
36+ imagemagick
37+ mupdf
38+ netpbm
39+ numpy
40+ poppler_utils
41+ pytestCheckHook
42+ scipy
43+ ];
44+
45+ preCheck = ''
46+ export img2pdfprog="$out/bin/img2pdf"
47+ '';
48+
49+ disabledTests = [
50+ "test_tiff_rgb"
51+ ];
52+
53+ pythonImportsCheck = [ "img2pdf" ];
2054
2155 meta = with lib; {
2256 description = "Convert images to PDF via direct JPEG inclusion";
2357 homepage = "https://gitlab.mister-muffin.de/josch/img2pdf";
2458 license = licenses.lgpl2;
25− platforms = platforms.unix;
26− maintainers = [ maintainers.veprbl ];
59+ maintainers = with maintainers; [ veprbl dotlambda ];
2760 };
2861}