mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-07-24 11:45:18 +03:00
https://github.com/pymupdf/PyMuPDF Python lib for data extraction, analysis, conversion & manipulation of PDF
66 lines
1.9 KiB
Text
66 lines
1.9 KiB
Text
# Maintainer: Marian Buschsieweke <marian.buschsieweke@posteo.net>
|
|
pkgname=py3-pymupdf
|
|
_pkgname=PyMuPDF
|
|
pkgver=1.25.5
|
|
pkgrel=0
|
|
pkgdesc="Python lib for data extraction, analysis, conversion & manipulation of PDF"
|
|
url="https://github.com/pymupdf/PyMuPDF"
|
|
# s390x: limited by py3-mupdf
|
|
# ppc64le: failing unit tests
|
|
arch="all !s390x !ppc64le"
|
|
license="AGPL-3.0"
|
|
depends="
|
|
py3-mupdf
|
|
"
|
|
makedepends="
|
|
mupdf-dev
|
|
py3-setuptools
|
|
py3-gpep517
|
|
py3-wheel
|
|
python3-dev
|
|
swig
|
|
"
|
|
checkdepends="
|
|
py3-codespell
|
|
py3-flake8
|
|
py3-pillow
|
|
py3-psutil
|
|
py3-pytest
|
|
"
|
|
subpackages="$pkgname-pyc"
|
|
source="$pkgname-$pkgver.tar.gz::https://github.com/pymupdf/PyMuPDF/archive/refs/tags/$pkgver.tar.gz"
|
|
builddir="$srcdir"/$_pkgname-$pkgver
|
|
|
|
build() {
|
|
PYMUPDF_SETUP_MUPDF_BUILD='' \
|
|
gpep517 build-wheel \
|
|
--wheel-dir .dist \
|
|
--output-fd 3 3>&1 >&2
|
|
}
|
|
|
|
check() {
|
|
python3 -m venv --clear --without-pip --system-site-packages .testenv
|
|
.testenv/bin/python3 -m installer .dist/*.whl
|
|
env PATH="$PATH:$builddir/.testenv/bin" .testenv/bin/python3 -m pytest \
|
|
--deselect tests/test_codespell.py::test_codespell \
|
|
--deselect tests/test_font.py::test_fontarchive \
|
|
--deselect tests/test_general.py::test_subset_fonts \
|
|
--deselect tests/test_general.py::test_4263 \
|
|
--deselect tests/test_pixmap.py::test_color_count \
|
|
--deselect tests/test_pixmap.py::test_3050 \
|
|
--deselect tests/test_pixmap.py::test_3854 \
|
|
--deselect tests/test_pylint.py::test_pylint \
|
|
--deselect tests/test_tesseract.py::test_tesseract \
|
|
--deselect tests/test_textextract.py::test_4180 \
|
|
--deselect tests/test_pixmap.py::test_3050 \
|
|
--deselect tests/test_textbox.py::test_textbox3
|
|
}
|
|
|
|
package() {
|
|
gpep517 install-wheel --destdir "$pkgdir" \
|
|
.dist/*.whl
|
|
}
|
|
|
|
sha512sums="
|
|
b11541772c0428702d2241443c795543e8cc86c609f225ba32b2c308d46da637aa8004ed168d8fcc9e78ebd4d1640e70b7d358937bbbb5086115e6dadf4256b0 py3-pymupdf-1.25.5.tar.gz
|
|
"
|