1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-23 19:25:25 +03:00
aports/community/py3-wordcloud/APKBUILD
psykose deb62258ec */*: set --skip-build for python installs
this marginally increases install speed by not checking if it needs a rebuild.
also remove --prefix=/usr as it defaults to /usr already.

might break a build or two, will fix later
2023-01-10 04:19:31 +01:00

33 lines
1.1 KiB
Text

# Contributor: Iztok Fister, Jr. <iztok@iztok-jr-fister.eu>
# Maintainer: Iztok Fister, Jr. <iztok@iztok-jr-fister.eu>
pkgname=py3-wordcloud
_pkgorig=wordcloud
pkgver=1.8.2.2
pkgrel=1
pkgdesc="A little word cloud generator in Python"
url="https://github.com/amueller/word_cloud"
arch="all"
license="MIT"
depends="python3 py3-matplotlib py3-numpy py3-pillow"
makedepends="cython python3-dev py3-setuptools"
checkdepends="py3-coverage py3-mock py3-pytest py3-pytest-cov"
source="$pkgname-$pkgver-2.tar.gz::https://github.com/amueller/word_cloud/archive/refs/tags/$pkgver.tar.gz"
builddir="$srcdir/word_cloud-$pkgver"
build() {
rm -fv wordcloud/query_integral_image.c
cythonize wordcloud/query_integral_image.pyx
python3 setup.py build
}
check() {
PYTHONPATH="$(echo build/lib.linux*)" pytest -vv -k 'not test_unicode_with_stopwords and not test_wordcloud_cli'
}
package() {
python3 setup.py install --skip-build --root="$pkgdir"
}
sha512sums="
50387a60e7ad961296fade5f099a1cc891772dfb9e5d5f4181c10461ae263a8067bed08a383eee6a822167b0998b159ecbf8732269c92dc4ef20ea4b63ea4c0a py3-wordcloud-1.8.2.2-2.tar.gz
"