ayaports/testing/py3-langdetect/APKBUILD

46 lines
986 B
Text
Raw Normal View History

2023-01-10 19:12:28 +00:00
# Maintainer: Antoine Martin (ayakael) <dev@ayakael.net>
# Contributor: Antoine Martin (ayakael) <dev@ayakael.net>
2021-11-30 21:44:44 +00:00
2023-01-10 19:12:28 +00:00
pkgname=py3-langdetect
_pyname="langdetect"
2021-11-30 21:44:44 +00:00
pkgver=1.0.9
pkgrel=0
2023-08-11 19:49:05 +00:00
arch="noarch"
2021-11-30 21:44:44 +00:00
pkgdesc="Language detection library ported from Google's language-detection"
2023-01-10 19:12:28 +00:00
url="https://pypi.python.org/project/$_pyname"
license="Apache-2.0"
2023-08-30 17:55:22 +00:00
depends="
py3-six
"
makedepends="
py3-setuptools
py3-gpep517
py3-installer
py3-wheel
"
checkdepends="
py3-pytest
"
2023-01-10 19:12:28 +00:00
source="$pkgname-$pkgver.tar.gz::https://pypi.io/packages/source/${_pyname:0:1}/$_pyname/$_pyname-$pkgver.tar.gz"
2021-11-30 21:44:44 +00:00
builddir="$srcdir"/$_pyname-$pkgver
2023-08-30 17:55:22 +00:00
subpackages="$pkgname-pyc"
2021-11-30 21:44:44 +00:00
build() {
2023-08-30 17:55:22 +00:00
gpep517 build-wheel \
--wheel-dir dist \
--output-fd 3 3>&1 >&2
2021-11-30 21:44:44 +00:00
}
check() {
2023-01-10 19:12:28 +00:00
pytest -v
2021-11-30 21:44:44 +00:00
}
package() {
2023-08-30 17:55:22 +00:00
python3 -m installer -d "$pkgdir" \
dist/*.whl
2021-11-30 21:44:44 +00:00
}
2023-08-30 17:55:22 +00:00
2021-11-30 21:44:44 +00:00
sha512sums="
7558d674c47b080c79e43a00a25d2c7f77188cf60bea2cecb3bebb803d75e1aa42b43c74bd26ea1b541f4cb927421908882cbec01a91f0913984217e71ccc8db py3-langdetect-1.0.9.tar.gz
"