aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--community/py3-enchant/APKBUILD (renamed from testing/py3-enchant/APKBUILD)16
1 files changed, 10 insertions, 6 deletions
diff --git a/testing/py3-enchant/APKBUILD b/community/py3-enchant/APKBUILD
index 4977850756..3b84f54510 100644
--- a/testing/py3-enchant/APKBUILD
+++ b/community/py3-enchant/APKBUILD
@@ -3,26 +3,30 @@
pkgname=py3-enchant
_pkgname=pyenchant
pkgver=3.0.1
-pkgrel=0
+pkgrel=1
pkgdesc="Spellchecking library for Python"
-options="!check" # No testsuite
-url="https://github.com/rfk/pyenchant"
+url="https://github.com/pyenchant/pyenchant"
arch="noarch"
license="LGPL-2.0-or-later"
depends="enchant2 python3"
makedepends="py3-setuptools"
-source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz"
+checkdepends="py3-pytest aspell-en"
+source="$pkgname-$pkgver.tar.gz::https://github.com/pyenchant/pyenchant/archive/v$pkgver.tar.gz"
builddir="$srcdir"/$_pkgname-$pkgver
replaces="py-enchant" # Backwards compatibility
provides="py-enchant=$pkgver-r$pkgrel" # Backwards compatibility
build() {
- python3 setup.py --quiet build
+ python3 setup.py build
}
package() {
python3 setup.py install --prefix=/usr --root="$pkgdir"
}
-sha512sums="93a37236b6fe1e483e5f6dcecb1d57abcc68bda2d46df7bd258e36f98a0ceff1af50241f673ee4cedc8dd38d2bf1e53314d4e8ccf3d6bc98c6c9df7aadf849f7 pyenchant-3.0.1.tar.gz"
+check() {
+ python3 -m pytest
+}
+
+sha512sums="61ab856071bb2c49b31f4f10562c0f6c2d1812537de927905427d61b9b183f8e25eb1ae01ca5655812512d9634be0e5fa7df8b393f9080e2ddd6700ccd049287 py3-enchant-3.0.1.tar.gz"