Name: python-fpdf2 Version: 2.8.8 Release: %autorelease Summary: Simple PDF generation for Python License: LGPL-3.0-only URL: https://py-pdf.github.io/fpdf2/ Source0: https://github.com/py-pdf/fpdf2/archive/refs/tags/%{version}.tar.gz#/%{name}-%{version}.tar.gz BuildArch: noarch BuildRequires: python3-devel BuildRequires: python3dist(pytest) # Tests BuildRequires: qpdf BuildRequires: python3dist(brotli) BuildRequires: python3dist(cryptography) BuildRequires: python3dist(lxml) BuildRequires: python3dist(pypdf) BuildRequires: python3dist(qrcode) BuildRequires: python3dist(uharfbuzz) %global desc %{expand: fpdf2 is a PDF creation library for Python. Compared with other PDF libraries, fpdf2 is fast, versatile, easy to learn and to extend. It is also entirely written in Python and has very few dependencies: Pillow, defusedxml, & fontTools. It is a fork and the successor of PyFPDF.} %description %{desc} %package -n python3-fpdf2 Summary: %{summary} Recommends: python3dist(brotli) Recommends: python3dist(cryptography) Recommends: python3dist(lxml) Recommends: python3dist(uharfbuzz) %description -n python3-fpdf2 %{desc} %prep %autosetup -n fpdf2-%{version} %generate_buildrequires %pyproject_buildrequires %build %pyproject_wheel %install %pyproject_install %pyproject_save_files -l fpdf %check %pyproject_check_import # test_table_extraction requires camelot (not in Fedora) # test_sign requires endesive (not in Fedora) # test_url_images and test_page_background require network access %pytest \ -o addopts='' \ --ignore=test/table/test_table_extraction.py \ --ignore=test/signing/test_sign.py \ --ignore=test/image/test_url_images.py \ --ignore=test/layout/test_page_background.py %files -n python3-fpdf2 -f %{pyproject_files} %doc README.md CHANGELOG.md %changelog %autochangelog