Something went wrong. Try again.
lol
Something went wrong. Try again.
1.5 kB · 69 lines
Nix
at master
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970{ lib, buildPythonPackage, camelot, defusedxml, fetchFromGitHub, fonttools, lxml, pikepdf, pillow, pytest-cov-stub, pytestCheckHook, qrcode, setuptools, uharfbuzz,}:
buildPythonPackage rec { pname = "fpdf2"; version = "2.8.5"; pyproject = true;
src = fetchFromGitHub { owner = "py-pdf"; repo = "fpdf2"; tag = version; hash = "sha256-LQZ7OMfL+PFxEc7q/dSw+YJoKr+eYEaZF8XCzd7AdBI="; };
build-system = [ setuptools ];
dependencies = [ defusedxml fonttools pillow ];
nativeCheckInputs = [ camelot lxml pikepdf pytest-cov-stub pytestCheckHook qrcode uharfbuzz ];
disabledTestPaths = [ "test/table/test_table_extraction.py" # tabula-py not packaged yet "test/signing/test_sign.py" # endesive not packaged yet ];
disabledTests = [ "test_png_url" # tries to download file "test_page_background" # tries to download file "test_share_images_cache" # uses timing functions "test_bidi_character" # tries to download file "test_bidi_conformance" # tries to download file "test_insert_jpg_jpxdecode" # JPEG2000 is broken ];
meta = { homepage = "https://github.com/py-pdf/fpdf2"; description = "Simple PDF generation for Python"; changelog = "https://github.com/py-pdf/fpdf2/blob/${src.tag}/CHANGELOG.md"; license = lib.licenses.lgpl3Only; maintainers = with lib.maintainers; [ jfvillablanca ]; };}