# Template file for 'python3-icoextract'
pkgname=python3-icoextract
version=0.3.0
revision=1
build_style=python3-pep517
hostmakedepends="python3-setuptools"
depends="python3-pefile"
checkdepends="ImageMagick python3-pefile python3-Pillow python3-pytest
 cross-x86_64-w64-mingw32 cross-i686-w64-mingw32"
short_desc="Icon extraction library for Windows PE files"
maintainer="Naiko <glclaritas@gmail.com>"
license="MIT"
homepage="https://github.com/jlu5/icoextract"
distfiles="https://github.com/jlu5/icoextract/archive/${version}.tar.gz"
checksum=ce46a9dde2054edd13922dbe254e01eefe64a110ebbfe3c0d695fe703e9d295a

do_check() {
	make -C tests
	pytest
}

post_install() {
	vlicense LICENSE
}
