From cf6b54008ccfb6ca0abbc5d9c8bbcb717d1c7b23 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C4=90o=C3=A0n=20Tr=E1=BA=A7n=20C=C3=B4ng=20Danh?= Date: Fri, 21 Feb 2020 17:01:46 +0700 Subject: [PATCH] New package: python3-elementpath-1.4.1 --- srcpkgs/python3-elementpath/template | 30 ++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 srcpkgs/python3-elementpath/template diff --git a/srcpkgs/python3-elementpath/template b/srcpkgs/python3-elementpath/template new file mode 100644 index 00000000000..6ed2b4c0733 --- /dev/null +++ b/srcpkgs/python3-elementpath/template @@ -0,0 +1,30 @@ +# Template file for 'python3-elementpath' +pkgname=python3-elementpath +version=1.4.1 +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 " +license="MIT" +homepage="https://github.com/sissaschool/elementpath" +distfiles="${PYPI_SITE}/e/elementpath/elementpath-${version}.tar.gz" +checksum=b29f626d690cb6f3716a65867a456c54dd679ddce7249bb2af4f37d33b83035d + +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 +}