19 buildPythonPackage rec {
24 src = fetchFromGitHub {
27 rev = "refs/tags/${version}";
28 hash = "sha256-MYurl/nEZhdhGxeNalwTWnZ8lr9SYJBR7hIjBZLOrJU=";
32 substituteInPlace setup.cfg \
33 --replace-fail "--cov=fpdf --cov-report=xml" ""
36 nativeBuildInputs = [ setuptools ];
38 propagatedBuildInputs = [
53 "test/table/test_table_extraction.py" # tabula-py not packaged yet
54 "test/signing/test_sign.py" # endesive not packaged yet
58 "test_png_url" # tries to download file
59 "test_page_background" # tries to download file
60 "test_share_images_cache" # uses timing functions
61 "test_bidi_character" # tries to download file
62 "test_bidi_conformance" # tries to download file
63 "test_insert_jpg_jpxdecode" # JPEG2000 is broken
67 homepage = "https://github.com/py-pdf/fpdf2";
68 description = "Simple PDF generation for Python";
69 changelog = "https://github.com/py-pdf/fpdf2/blob/${version}/CHANGELOG.md";
70 license = lib.licenses.lgpl3Only;
71 maintainers = with lib.maintainers; [ jfvillablanca ];