python3-cairocffi: update to 1.2.0.
This commit is contained in:
parent
eb51ae17f6
commit
3006c33b38
1 changed files with 13 additions and 9 deletions
|
@ -1,25 +1,29 @@
|
|||
# Template file for 'python3-cairocffi'
|
||||
pkgname=python3-cairocffi
|
||||
version=0.9.0
|
||||
revision=5
|
||||
version=1.2.0
|
||||
revision=1
|
||||
wrksrc="cairocffi-${version}"
|
||||
build_style=python3-module
|
||||
hostmakedepends="python3-setuptools python3-cffi"
|
||||
hostmakedepends="python3-setuptools python3-cffi python3-wheel"
|
||||
depends="python3-cffi cairo"
|
||||
checkdepends="cairo gdk-pixbuf"
|
||||
checkdepends="python3-pytest python3-numpy gdk-pixbuf $depends"
|
||||
short_desc="CFFI-based cairo bindings for Python3"
|
||||
maintainer="Orphaned <orphan@voidlinux.org>"
|
||||
license="BSD-3-Clause"
|
||||
homepage="https://github.com/Kozea/cairocffi"
|
||||
changelog="https://raw.githubusercontent.com/Kozea/cairocffi/master/NEWS.rst"
|
||||
distfiles="${PYPI_SITE}/c/cairocffi/cairocffi-${version}.tar.gz"
|
||||
checksum=15386c3a9e08823d6826c4491eaccc7b7254b1dc587a3b9ce60c350c3f990337
|
||||
checksum=9a979b500c64c8179fec286f337e8fe644eca2f2cd05860ce0b62d25f22ea140
|
||||
|
||||
pre_check() {
|
||||
export PY_IGNORE_IMPORTMISMATCH=1
|
||||
vsed -e s/test_scaled_font/scaled_font/ -i build-2.7/lib/cairocffi/test_cairo.py
|
||||
vsed -e s/test_context_font/context_font/ -i build-2.7/lib/cairocffi/test_cairo.py
|
||||
post_patch() {
|
||||
vsed -e '/pytest-runner/d' -i setup.cfg
|
||||
}
|
||||
|
||||
do_check() {
|
||||
vsed -e '/addopts/d' -i setup.cfg
|
||||
# Copy in $wrksrc lacks generated module; run against built copy
|
||||
( cd build/lib* && python3 -m pytest )
|
||||
}
|
||||
|
||||
post_install() {
|
||||
vlicense LICENSE
|
||||
|
|
Loading…
Reference in a new issue