void-packages/srcpkgs/python3-dominate/template

28 lines
866 B
Bash

# Template file for 'python3-dominate'
pkgname=python3-dominate
version=2.8.0
revision=2
build_style=python3-module
hostmakedepends="python3-setuptools"
depends="python3"
checkdepends="python3-pytest"
short_desc="Library for creating and manipulating HTML (Python3)"
maintainer="Benjamín Albiñana <benalb@gmail.com>"
license="LGPL-3.0-or-later"
homepage="https://github.com/Knio/dominate"
distfiles="https://github.com/Knio/dominate/archive/${version}.tar.gz"
checksum=4e55f84b8446fe4338a7acaf60bbb1cb133a81c4c7a46a196b904c9f8387d377
post_patch() {
# Adjust the version properly
vsed -i -e "s/@@VERSION@@/${version}/" setup.py
}
pre_check() {
# this fix the failed test in i686
# https://github.com/Knio/dominate/issues/175
if [ "$XBPS_TARGET_MACHINE" = "i686" ]; then
vsed -i '/3713141171098444831/i \\t\t1692341442, # i686' tests/test_dom_tag.py
fi
}