# Contributor: Thomas Boerger # Maintainer: Thomas Boerger pkgname=py3-humanize _pkgname=humanize pkgver=4.7.0 pkgrel=0 pkgdesc="Python humanize functions" options="!check" # No tests are actually run url="https://pypi.org/project/humanize" arch="noarch" license="MIT" depends="python3" makedepends="py3-gpep517 py3-hatchling py3-hatch-vcs" checkdepends="py3-mock py3-freezegun py3-pytest" subpackages="$pkgname-pyc" source="$_pkgname-$pkgver.tar.gz::https://github.com/python-humanize/humanize/archive/$pkgver.tar.gz" builddir="$srcdir"/$_pkgname-$pkgver replaces=py-humanize # Backwards compatibility provides=py-humanize=$pkgver-r$pkgrel # Backwards compatibility build() { export SETUPTOOLS_SCM_PRETEND_VERSION=$pkgver gpep517 build-wheel \ --wheel-dir .dist \ --output-fd 3 3>&1 >&2 } check() { python3 -m pytest } package() { python3 -m installer -d "$pkgdir" \ .dist/humanize*.whl } sha512sums=" 1397f38df63e639bd67306c995d41075c0b8dc55b0f0968f5290ed0bfd8fab63be88527a42ec8a69ce046f67f6d900fc8574fb231b70e0ea4ab5f5ebb0e5f22b humanize-4.7.0.tar.gz "