afew: add python3-setuptools_scm to hostmakedepends

This commit is contained in:
Andrew J. Hesford 2020-10-14 21:07:43 -04:00
parent e34d880510
commit 007cfac96a

View file

@ -1,9 +1,9 @@
# Template file for 'afew'
pkgname=afew
version=3.0.1
revision=2
revision=3
build_style=python3-module
hostmakedepends="python3-setuptools python3-Sphinx pkg-config"
hostmakedepends="python3-setuptools_scm python3-Sphinx pkg-config"
depends="notmuch-python3 python3-dkimpy python3-chardet notmuch"
checkdepends="python3-pytest python3-freezegun $depends"
short_desc="Initial tagging script for notmuch mail"
@ -13,11 +13,6 @@ homepage="https://github.com/afewmail/afew"
distfiles="${PYPI_SITE}/a/afew/afew-${version}.tar.gz"
checksum=ce857fe1a3bc0982c1dac81aef66cacc148e4f9db06da720f869392af1c2ee72
post_patch() {
# version is pre-generated
vsed -i -e "s/'setuptools_scm'//" setup.py
}
post_build() {
python3 setup.py build_sphinx -b man
}