void-packages/srcpkgs/python3-elementpath/template

32 lines
1014 B
Bash

# Template file for 'python3-elementpath'
pkgname=python3-elementpath
version=3.0.2
revision=3
build_style=python3-module
# depends on xmlschema and memory_profiling
make_check_args="--ignore tests/memory_profiling.py \
--ignore tests/execute_w3c_tests.py"
hostmakedepends="python3-setuptools"
depends="python3"
checkdepends="python3-lxml python3-pytest"
short_desc="XPath 1.0/2.0 parsers and selectors for ElementTree and lxml"
maintainer="Đoàn Trần Công Danh <congdanhqx@gmail.com>"
license="MIT"
homepage="https://github.com/sissaschool/elementpath"
distfiles="${PYPI_SITE}/e/elementpath/elementpath-${version}.tar.gz"
checksum=cca18742dc0f354f79874c41a906e6ce4cc15230b7858d22a861e1ec5946940f
post_patch() {
# locale handling in musl is NOT that ideal,
# those tests are broken on musl
if [ "$XBPS_TARGET_LIBC" = musl ]; then
vsed -i tests/test_xpath2_functions.py \
-e "/compare.*Strassen.* 1/d" \
-e "/with self\.assertRaises(locale\.Error)/,+3d"
fi
}
post_install() {
vlicense LICENSE
}