29 lines
896 B
Bash
29 lines
896 B
Bash
# Template file for 'python3-humanize'
|
|
pkgname=python3-humanize
|
|
version=2.0.0
|
|
revision=3
|
|
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
|
|
}
|
|
|
|
do_check() {
|
|
PYTHONPATH="${PWD}/build/lib" python3 -m pytest
|
|
}
|
|
|
|
post_install() {
|
|
vlicense LICENCE
|
|
}
|