From cdfed1e9639e2864d869bb96548665b9196b400f Mon Sep 17 00:00:00 2001 From: icp Date: Tue, 22 Aug 2023 00:21:37 +0530 Subject: [PATCH] python3-humanize: update to 4.8.0. Adopt. --- srcpkgs/python3-humanize/template | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/srcpkgs/python3-humanize/template b/srcpkgs/python3-humanize/template index ebe44ff1d55..c36d094f17c 100644 --- a/srcpkgs/python3-humanize/template +++ b/srcpkgs/python3-humanize/template @@ -1,24 +1,22 @@ # Template file for 'python3-humanize' pkgname=python3-humanize -version=4.6.0 +version=4.8.0 revision=1 build_style=python3-pep517 hostmakedepends="hatchling hatch-vcs" depends="python3" checkdepends="python3-pytest python3-freezegun" short_desc="Python humanize utilities" -maintainer="Orphaned " +maintainer="icp " license="MIT" -homepage="https://github.com/python-humanize/humanize" +homepage="https://humanize.readthedocs.io/" 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" +checksum=9783373bf1eec713a770ecaa7c2d7a7902c98398009dfa3d8a2df91eec9311e8 post_patch() { - # allow running tests without installing - vsed -e "s/importlib_metadata\.version(__name__)/'${version}'/g" \ - -i src/humanize/__init__.py + # remove tests which overflow in 32-bit hosts + vsed -e '/27 years/d' -i tests/test_time.py } post_install() {