# Contributor: Stefan Wagner # Maintainer: Drew DeVault pkgname=py3-pyphen _pkgname=Pyphen pkgver=0.13.2 pkgrel=0 pkgdesc="python-based dictionary hyphenator library" url="https://www.pyphen.org" arch="noarch" license="GPL-2.0-or-later AND LGPL-2.1-or-later AND MPL-1.1" depends="python3" makedepends="py3-gpep517 py3-flit-core" checkdepends="py3-pytest py3-pytest-cov py3-pytest-isort py3-pytest-xdist" source="$_pkgname-$pkgver.tar.gz::https://github.com/Kozea/Pyphen/archive/$pkgver.tar.gz" builddir="$srcdir/$_pkgname-$pkgver" replaces="py-pyphen" # Backwards compatibility provides="py-pyphen=$pkgver-r$pkgrel" # Backwards compatibility prepare() { default_prepare # disable pytest-flake8 # https://github.com/tholo/pytest-flake8/issues/87 sed -i 's/--flake8//' pyproject.toml } build() { gpep517 build-wheel \ --wheel-dir dist \ --output-fd 3 3>&1 >&2 } check() { python3 -m pytest } package() { python3 -m installer -d "$pkgdir" \ dist/pyphen-$pkgver-py3-none-any.whl } sha512sums=" 63bd3411c3120e73cd484eef3c3a280e9f8fee40f9aaf3fdca46c3ddf545aeb462eb4214fb239bd6a1fb6c065d5a34290f39763985e85447f413fc0af0afdae8 Pyphen-0.13.2.tar.gz "