Files
horizon-packages/srcpkgs/python3-humanize/template
T

25 lines
712 B
Bash

# Template file for 'python3-humanize'
pkgname=python3-humanize
version=4.12.3
revision=1
build_style=python3-pep517
hostmakedepends="hatchling hatch-vcs"
depends="python3"
checkdepends="python3-pytest-cov python3-freezegun"
short_desc="Python humanize utilities"
maintainer="icp <pangolin@vivaldi.net>"
license="MIT"
homepage="https://humanize.readthedocs.io/"
changelog="https://github.com/python-humanize/humanize/releases"
distfiles="${PYPI_SITE}/h/humanize/humanize-${version}.tar.gz"
checksum=8430be3a615106fdfceb0b2c1b41c4c98c6b0fc5cc59663a5539b111dd325fb0
post_patch() {
# remove tests which overflow in 32-bit hosts
vsed -e '/27 years/d' -i tests/test_time.py
}
post_install() {
vlicense LICENCE
}