Subject: [PATCH] testing/py3-langdetect: new aport

From: Zsolt Vadasz <[email-masked]>
Date: Tue, 15 Nov 2022 19:36:22 +0000

https://pypi.org/project/langdetect/
Language detection library ported from Google's language-detection.
---
 testing/py3-langdetect/APKBUILD | 37 +++++++++++++++++++++++++++++++++
 1 file changed, 37 insertions(+)
 create mode 100644 testing/py3-langdetect/APKBUILD

diff --git a/testing/py3-langdetect/APKBUILD b/testing/py3-langdetect/APKBUILD
new file mode 100644
index 0000000000..520755e612
--- /dev/null
+++ b/testing/py3-langdetect/APKBUILD
@@ -0,0 +1,37 @@
+# Maintainer: Zsolt Vadasz <[email-masked]>
+pkgname=py3-langdetect
+_pkgname=langdetect
+pkgver=1.0.9
+pkgrel=0
+pkgdesc="Language detection library ported from Google's language-detection."
+url="http://packages.python.org/pypi/langdetect"
+arch="noarch"
+license="MIT"
+depends="
+	python3
+	py3-six
+	"
+checkdepends="python3-dev"
+makedepends="py3-setuptools"
+source="https://files.pythonhosted.org/packages/0e/72/a3add0e4eec4eb9e2569554f7c70f4a3c27712f40e3284d483e88094cc0e/langdetect-1.0.9.tar.gz"
+builddir="$srcdir/$_pkgname-$pkgver"
+
+build() {
+	python3 setup.py build
+}
+
+check() {
+	python3 setup.py test
+}
+
+package() {
+	PYTHONPATH=$pkgdir`python3 -c "import site; print(site.getsitepackages()[0])"` \
+	python3 setup.py install \
+		--prefix=/usr \
+		--root="$pkgdir" \
+		--single-version-externally-managed
+}
+
+sha512sums="
+7558d674c47b080c79e43a00a25d2c7f77188cf60bea2cecb3bebb803d75e1aa42b43c74bd26ea1b541f4cb927421908882cbec01a91f0913984217e71ccc8db  langdetect-1.0.9.tar.gz
+"
-- 
2.36.3