~alpine/aports

testing/py3-langdetect: new aport v1 PROPOSED

Zsolt Vadasz: 1
 testing/py3-langdetect: new aport

 1 files changed, 37 insertions(+), 0 deletions(-)
Export patchset (mbox)
How do I use this?

Copy & paste the following snippet into your terminal to import this patchset into git:

curl -s https://lists.alpinelinux.org/~alpine/aports/patches/4144/mbox | git am -3
Learn more about email & git

[PATCH] testing/py3-langdetect: new aport Export this patch

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 <zsolt_vadasz@protonmail.com>
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