void-packages/srcpkgs/python3-humanize/template
2021-10-09 08:00:51 -04:00

25 lines
831 B
Bash

# Template file for 'python3-humanize'
pkgname=python3-humanize
version=2.0.0
revision=4
wrksrc="humanize-${version}"
build_style=python3-module
hostmakedepends="python3-setuptools_scm"
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
}