void-packages/srcpkgs/python3-Babel/template

29 lines
910 B
Bash

# Template file for 'python3-Babel'
pkgname=python3-Babel
version=2.12.1
revision=2
build_style=python3-module
hostmakedepends="python3-setuptools"
checkdepends="python3-pytest python3-freezegun faketime"
short_desc="Tools for internationalizing Python applications (Python3)"
maintainer="Orphaned <orphan@voidlinux.org>"
license="BSD-3-Clause"
homepage="https://babel.pocoo.org"
changelog="https://raw.githubusercontent.com/python-babel/babel/master/CHANGES.rst"
distfiles="${PYPI_SITE}/B/Babel/Babel-${version}.tar.gz"
checksum=cc2d99999cd01d44420ae725a21c9e3711b3aadc7976d6147f622d8581963455
do_check() {
# If you see this is hanging, remove faketime
# it has problem with python's time.sleep
LD_PRELOAD=/usr/lib/faketime/libfaketime.so.1 \
FAKETIME="@2023-01-01 00:00:00" \
python3 -m pytest
}
post_install() {
vlicense LICENSE
# for compatibility
ln -s pybabel "${DESTDIR}/usr/bin/pybabel3"
}