Files
nixpkgs/pkgs/development/python-modules/fpdf2/default.nix
T
Martin Weinelt c867efa88a python3Packages.fpdf2: 2.8.2 -> 2.8.3
https://github.com/py-pdf/fpdf2/blob/2.8.3/CHANGELOG.md

This commit was automatically generated using update-python-libraries.
2025-08-09 18:59:31 +02:00

71 lines
1.4 KiB
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
setuptools,
defusedxml,
pillow,
fonttools,
pytestCheckHook,
pytest-cov-stub,
qrcode,
camelot,
uharfbuzz,
lxml,
}:
buildPythonPackage rec {
pname = "fpdf2";
version = "2.8.3";
pyproject = true;
src = fetchFromGitHub {
owner = "py-pdf";
repo = "fpdf2";
tag = version;
hash = "sha256-uLaVRseakLg7Q9QO4F6BM7vQIFeA44ry8cqDfas8oMA=";
};
nativeBuildInputs = [ setuptools ];
propagatedBuildInputs = [
defusedxml
pillow
fonttools
];
nativeCheckInputs = [
pytestCheckHook
pytest-cov-stub
qrcode
camelot
uharfbuzz
lxml
];
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 ];
};
}