mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-10-30 16:10:36 +00:00
test_image_with_explicit_dimensions compares against a reference PDF generated under Pillow 12. Upstream regenerated it for Pillow 13 on main (py-pdf/fpdf2#2043, commit 597cfff); the fix rides 2.9.0, so disable the test until the update lands. Fixes NixOS/nixpkgs#580380. Upstream: py-pdf/fpdf2#2085. Not-cherry-picked-because: release-26.05 only, master still has Pillow 12.3 where the test passes Assisted-by: OpenCode:muse-spark-1.3-contributor
69 lines
1.4 KiB
Nix
69 lines
1.4 KiB
Nix
{
|
|
lib,
|
|
brotli,
|
|
buildPythonPackage,
|
|
camelot,
|
|
defusedxml,
|
|
fetchFromGitHub,
|
|
fonttools,
|
|
lxml,
|
|
pillow,
|
|
pytest-cov-stub,
|
|
pytestCheckHook,
|
|
qrcode,
|
|
setuptools,
|
|
uharfbuzz,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "fpdf2";
|
|
version = "2.8.9";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "py-pdf";
|
|
repo = "fpdf2";
|
|
tag = version;
|
|
hash = "sha256-bMVi0ZNV9Al9dxH8t801y4zkJpNmQUVTeMoOh+DDzFA=";
|
|
};
|
|
|
|
build-system = [ setuptools ];
|
|
|
|
dependencies = [
|
|
defusedxml
|
|
fonttools
|
|
pillow
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
brotli
|
|
camelot
|
|
lxml
|
|
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_twitter_emoji_shaping" # hash mismatch
|
|
"test_twitter_emoji_text" # hash mismatch
|
|
"test_image_with_explicit_dimensions" # hash mismatch with Pillow 13, fixed upstream in 2.9.0
|
|
];
|
|
|
|
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 ];
|
|
};
|
|
}
|