void-packages/srcpkgs/python3-humanize/template

27 lines
829 B
Bash

# Template file for 'python3-humanize'
pkgname=python3-humanize
version=4.6.0
revision=1
build_style=python3-pep517
hostmakedepends="hatchling hatch-vcs"
depends="python3"
checkdepends="python3-pytest python3-freezegun"
short_desc="Python humanize utilities"
maintainer="Aluísio Augusto Silva Gonçalves <aluisio@aasg.name>"
license="MIT"
homepage="https://github.com/python-humanize/humanize"
changelog="https://github.com/python-humanize/humanize/releases"
distfiles="${PYPI_SITE}/h/humanize/humanize-${version}.tar.gz"
checksum=5f1f22bc65911eb1a6ffe7659bd6598e33dcfeeb904eb16ee1e705a09bf75916
make_check_pre="env PYTHONPATH=src"
post_patch() {
# allow running tests without installing
vsed -e "s/importlib_metadata\.version(__name__)/'${version}'/g" \
-i src/humanize/__init__.py
}
post_install() {
vlicense LICENCE
}