diff --git a/srcpkgs/python3-elementpath/template b/srcpkgs/python3-elementpath/template index 1145bc45c6c..f4e9a8267d6 100644 --- a/srcpkgs/python3-elementpath/template +++ b/srcpkgs/python3-elementpath/template @@ -1,29 +1,23 @@ # Template file for 'python3-elementpath' pkgname=python3-elementpath -version=2.4.0 +version=3.0.2 revision=1 wrksrc=elementpath-${version} 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" +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 " license="MIT" homepage="https://github.com/sissaschool/elementpath" distfiles="${PYPI_SITE}/e/elementpath/elementpath-${version}.tar.gz" -checksum=5b6801b3be94d48d213beb7b8ebad96addb35c95fc6a9c062c80e033b4a32fe8 +checksum=cca18742dc0f354f79874c41a906e6ce4cc15230b7858d22a861e1ec5946940f post_patch() { - # depends on xmlschema and memory_profiling - rm -f tests/memory_profiling.py tests/execute_w3c_tests.py - # unparsed text is broken - vsed -i ' - /def test_unparsed_text_function/,/^ *def /{ - /def test_unparse/d - /^ *def /!d - } - ' tests/test_xpath3.py # locale handling in musl is NOT that ideal, # those tests are broken on musl if [ "$XBPS_TARGET_LIBC" = musl ]; then