# Maintainer: Carlo Landmeter pkgname=py3-pdfminer _pyname=pdfminer.six pkgver=20221105 pkgrel=1 pkgdesc="Python PDF Parser" url="https://github.com/pdfminer/pdfminer.six" arch="noarch" license="MIT" depends=" python3 py3-charset-normalizer py3-cryptography " makedepends=" py3-setuptools " checkdepends=" py3-pytest " # Only auto-generated github tarballs contain the testsuite subpackages="$pkgname-pyc" source="$pkgname-$pkgver.tar.gz::https://github.com/pdfminer/pdfminer.six/archive/$pkgver.tar.gz" builddir="$srcdir/$_pyname-$pkgver" prepare() { default_prepare sed -i "s|__VERSION__|$pkgver|" pdfminer/__init__.py } build() { python3 setup.py build } check() { PYTHONPATH=build/lib:. \ pytest } package() { python3 setup.py install --skip-build --root="$pkgdir" } sha512sums=" 72034a75005c91100274f86baa4c8884caad86aacf94ca9d0d5a51d8b3c772aa0bcd766416bed9e26df00bd9a2be585649eaa24321735f532e40a3871e19c6df py3-pdfminer-20221105.tar.gz "