python3Packages.img2pdf: run tests (#152365)

This commit is contained in:
Robert Schütz 2022-01-09 01:46:50 +00:00 committed by GitHub
parent 752ae86605
commit cb6adff3ba
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,4 +1,19 @@
{ lib, pillow, fetchPypi, buildPythonPackage, isPy27, pikepdf }:
{ lib
, buildPythonPackage
, isPy27
, fetchPypi
, pikepdf
, pillow
, exiftool
, ghostscript
, imagemagick
, mupdf
, netpbm
, numpy
, poppler_utils
, pytestCheckHook
, scipy
}:
buildPythonPackage rec {
pname = "img2pdf";
@ -15,14 +30,32 @@ buildPythonPackage rec {
pillow
];
# no tests exectuted
doCheck = false;
checkInputs = [
exiftool
ghostscript
imagemagick
mupdf
netpbm
numpy
poppler_utils
pytestCheckHook
scipy
];
preCheck = ''
export img2pdfprog="$out/bin/img2pdf"
'';
disabledTests = [
"test_tiff_rgb"
];
pythonImportsCheck = [ "img2pdf" ];
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 ];
maintainers = with maintainers; [ veprbl dotlambda ];
};
}