vp-build/srcpkgs/python3-humanize/template

27 lines
849 B
Bash

# Template file for 'python3-humanize'
pkgname=python3-humanize
version=2.0.0
revision=5
wrksrc="humanize-${version}"
build_style=python3-module
hostmakedepends="python3-setuptools_scm"
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/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
}
post_install() {
vlicense LICENCE
}