python3-enchant: replace enchant with enchant2

By ericonr:
- switch to GH distfiles, which include tests
- fix tests

Closes: #27716 [via git-merge-pr]
This commit is contained in:
Giuseppe Fierro 2021-01-06 14:47:35 +01:00 committed by Érico Rolim
parent 975d623508
commit 972a5d40bf

View file

@ -1,18 +1,16 @@
# Template file for 'python3-enchant' # Template file for 'python3-enchant'
pkgname=python3-enchant pkgname=python3-enchant
version=3.1.1 version=3.1.1
revision=2 revision=3
wrksrc="pyenchant-${version}" wrksrc="pyenchant-${version}"
build_style=python3-module build_style=python3-module
hostmakedepends="python3-setuptools enchant-devel" hostmakedepends="python3-setuptools enchant2-devel"
depends="enchant" depends="enchant2"
# needs an en_US dict to run
checkdepends="$depends python3-pytest python3-pytest-cov hunspell-en_US"
short_desc="Spellchecking library for Python 3" short_desc="Spellchecking library for Python 3"
maintainer="Orphaned <orphan@voidlinux.org>" maintainer="Orphaned <orphan@voidlinux.org>"
license="LGPL-2.1" license="LGPL-2.1-only"
homepage="https://github.com/rfk/pyenchant" homepage="https://github.com/rfk/pyenchant"
distfiles="${PYPI_SITE}/p/pyenchant/pyenchant-${version}.tar.gz" distfiles="https://github.com/pyenchant/pyenchant/archive/v${version}.tar.gz"
checksum=ce0915d7acd771fde6e8c2dce8ad0cb0e6f7c4fa8430cc96e3e7134e99aeb12f checksum=ced3a776116e63ed7e496401ed23ac4ba52ac7942cd808492e8e654b27dccacd
do_check() {
: GtkSpellCheckerDialog is Python 2 only, at least in my understand
}