diff --git a/srcpkgs/afew/patches/afew-python-3.8.patch b/srcpkgs/afew/patches/afew-python-3.8.patch deleted file mode 100644 index 6275d8f9d07..00000000000 --- a/srcpkgs/afew/patches/afew-python-3.8.patch +++ /dev/null @@ -1,8 +0,0 @@ ---- afew/filters/__init__.py -+++ afew/filters/__init__.py -@@ -6,4 +6,4 @@ - - __all__ = list(filename[:-3] - for filename in glob.glob1(os.path.dirname(__file__), '*.py') -- if filename is not '__init__.py') -+ if filename != '__init__.py') diff --git a/srcpkgs/afew/template b/srcpkgs/afew/template index 9861d25fd5e..2b2614a4eba 100644 --- a/srcpkgs/afew/template +++ b/srcpkgs/afew/template @@ -1,19 +1,23 @@ # Template file for 'afew' pkgname=afew -version=2.0.0 -revision=4 +version=3.0.0 +revision=1 archs=noarch build_style=python3-module -pycompile_module="afew" hostmakedepends="python3-setuptools python3-Sphinx pkg-config" -depends="notmuch-python3 python3-dkimpy python3-chardet" -checkdepends="python3-pytest $depends" +depends="notmuch-python3 python3-dkimpy python3-chardet notmuch" +checkdepends="python3-pytest python3-freezegun $depends" short_desc="Initial tagging script for notmuch mail" maintainer="Alexander Gehrke " license="ISC" homepage="https://github.com/afewmail/afew" distfiles="${PYPI_SITE}/a/afew/afew-${version}.tar.gz" -checksum=1a685b97ddeba66d4af5ee9b2b76b1a8bccccd3d10bc285c8b82886a0328c048 +checksum=ec60b8587ffb286da8c5831e5da0378b8df3642a5164e667665453c8beef43a2 + +post_patch() { + # version is pre-generated + vsed -i -e "s/'setuptools_scm'//" setup.py +} post_build() { python3 setup.py build_sphinx -b man