# Contributor: Stefan Wagner # Maintainer: Drew DeVault pkgname=py3-pyphen _pkgname=Pyphen pkgver=0.12.0 pkgrel=2 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-build py3-flit py3-installer py3-wheel" checkdepends="py3-pytest py3-pytest-cov py3-pytest-isort py3-pytest-flake8" 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 build() { python3 -m build --no-isolation --wheel } check() { python3 -m pytest } package() { python3 -m installer -d "$pkgdir" \ dist/pyphen-$pkgver-py3-none-any.whl } sha512sums=" abecf0773f59b7a757b47c6512f1bf8e98f4709b285f04cf235c085ab4767eb95deab8ede4b792d6f4a6156d47287f9f712cb658939ed5afc475644e282adbd3 Pyphen-0.12.0.tar.gz "