# Template file for 'python3-pdfminer.six'
pkgname=python3-pdfminer.six
version=20260107
revision=1
build_style=python3-pep517
hostmakedepends="python3-setuptools python3-setuptools_scm"
depends="python3-charset-normalizer python3-cryptography python3-Pillow"
checkdepends="$depends python3-pytest"
short_desc="Tool for extracting information from PDF documents"
maintainer="Bleznudd <bleznudd@pm.me>"
license="MIT"
homepage="https://github.com/pdfminer/pdfminer.six"
changelog="https://raw.githubusercontent.com/pdfminer/pdfminer.six/master/CHANGELOG.md"
distfiles="https://github.com/pdfminer/pdfminer.six/archive/refs/tags/${version}.tar.gz"
checksum=37422ae18834db5d8aec46cdc82f2588b9c50aeae5b5941c9de63ec107a046bc

pre_build() {
	export SETUPTOOLS_SCM_PRETEND_VERSION_FOR_PDFMINER_SIX="${version}"
}

post_install() {
	vlicense LICENSE
}
