# Template file for 'alot'
pkgname=alot
version=0.9
revision=1
archs=noarch
build_style=python3-module
hostmakedepends="python3-setuptools python3-Sphinx"
depends="python3-setuptools python3-Twisted notmuch-python3 python3-configobj
 python3-gpg python3-magic python3-urwidtrees"
checkdepends="$depends gnupg2 procps-ng python3-pytest"
short_desc="Terminal-based mail user agent based on the notmuch mail indexer"
maintainer="Felix Van der Jeugt <felix.vanderjeugt@gmail.com>"
license="GPL-3.0-or-later"
homepage="https://github.com/pazz/alot"
distfiles="https://github.com/pazz/${pkgname}/archive/${version}.tar.gz"
checksum=64bfa2f550d775940348c93532bf5cbdde57b9fcec4bcf2447a72510d2add6cf
patch_args="-Np1"

do_check() {
	pytest3 -k 'not test_no_spawn_no_stdin_attached'
}

post_build() {
	make $makejobs -C docs man
}

post_install() {
	vman docs/build/man/alot.1
}
