void-packages/srcpkgs/python3-Pillow/template

27 lines
864 B
Bash

# Template file for 'python3-Pillow'
pkgname=python3-Pillow
version=8.1.0
revision=1
wrksrc="Pillow-${version}"
build_style=python3-module
hostmakedepends="python3-setuptools"
makedepends="python3-devel libjpeg-turbo-devel libopenjpeg2-devel
tiff-devel freetype-devel lcms2-devel libwebp-devel libimagequant-devel"
depends="python3"
checkdepends="python3-pytest"
short_desc="Python Imaging Library (PIL) for for Python3"
maintainer="Andrew J. Hesford <ajh@sideband.org>"
license="custom:PIL"
homepage="https://python-pillow.org"
changelog="https://raw.githubusercontent.com/python-pillow/Pillow/master/CHANGES.rst"
distfiles="${PYPI_SITE}/P/Pillow/Pillow-${version}.tar.gz"
checksum=887668e792b7edbfb1d3c9d8b5d8c859269a0f0eba4dda562adb95500f60dbba
do_check() {
PYTHONPATH=$(cd build/lib.linux-* && pwd) python3 -m pytest
}
post_install() {
vlicense LICENSE
}