31 lines
920 B
Bash
31 lines
920 B
Bash
# Template file for 'python3-elementpath'
|
|
pkgname=python3-elementpath
|
|
version=1.4.3
|
|
revision=1
|
|
archs=noarch
|
|
wrksrc=elementpath-${version}
|
|
build_style=python3-module
|
|
hostmakedepends="python3-setuptools"
|
|
depends="python3"
|
|
checkdepends="python3-lxml python3-xmlschema"
|
|
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=f667c55b5c77d78aacda82d1f6da189cdcf071a04b4093f48e22c89ce1a6559f
|
|
|
|
post_patch() {
|
|
# locale handling in musl is NOT that ideal,
|
|
# those tests is broken on musl
|
|
if [ "$XBPS_TARGET_LIBC" = musl ]; then
|
|
vsed -i tests/test_xpath2_parser.py \
|
|
-e "/compare.*Strassen.* 1/d" \
|
|
-e "/with self\.assertRaises(locale\.Error)/,+3d"
|
|
fi
|
|
}
|
|
|
|
post_install() {
|
|
vlicense LICENSE
|
|
}
|