# Contributor: Iztok Fister, Jr. # Maintainer: Iztok Fister, Jr. 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 "