# Template file for 'python3-humanize' pkgname=python3-humanize version=2.0.0 revision=1 archs=noarch wrksrc="humanize-${version}" build_style=python3-module hostmakedepends="python3-setuptools" checkdepends="python3-pytest python3-freezegun" short_desc="Python humanize utilities" maintainer="Aluísio Augusto Silva Gonçalves " license="MIT" homepage="https://github.com/jmoiron/humanize" distfiles="${PYPI_SITE}/h/humanize/humanize-${version}.tar.gz" checksum=1766e8b82772abdf54a0b3620b14b21b36feba5160401838f97d18a4c58c7f71 do_patch() { # This line calls 'pkg_resources' and breaks testing due to a # missing distribution (possibly because it expects the package # to have already been installed). sed -i "s/VERSION = .*$/VERSION = '${version}'/" src/humanize/__init__.py } do_check() { PYTHONPATH="${PWD}/build/lib" python3 -m pytest } post_install() { vlicense LICENCE }