# Contributor: Bart Ribbers # Maintainer: pkgname=py3-inflect pkgver=7.0.0 pkgrel=0 pkgdesc="Correctly generate plurals, singular nouns, ordinals, indefinite articles; convert numbers to words" url="https://github.com/jaraco/inflect" arch="noarch" license="MIT" depends="py3-pydantic" makedepends=" py3-gpep517 py3-setuptools py3-setuptools_scm py3-wheel " checkdepends=" py3-pytest py3-pytest-black py3-pytest-cov py3-pytest-flake8 " subpackages="$pkgname-pyc" source="https://pypi.python.org/packages/source/i/inflect/inflect-$pkgver.tar.gz" builddir="$srcdir/inflect-$pkgver" build() { gpep517 build-wheel \ --wheel-dir .dist \ --output-fd 3 3>&1 >&2 } check() { python3 -m venv --clear --without-pip --system-site-packages .testenv .testenv/bin/python3 -m installer .dist/*.whl .testenv/bin/python3 -m pytest } package() { python3 -m installer -d "$pkgdir" \ .dist/*.whl } sha512sums=" b2ca39d0e36cda8c8c42d208443d3b84b10d659dcd0d368273503d6e76df19c61ac3c623d526ea918ca8b347d6db8bdfb691609e480eaa33dd4f1c37e008473b inflect-7.0.0.tar.gz "