2019-02-15 13:37:04 +00:00
|
|
|
# Template file for 'python-soupsieve'
|
|
|
|
pkgname=python-soupsieve
|
2019-02-17 12:58:59 +00:00
|
|
|
version=1.8
|
2019-02-15 13:37:04 +00:00
|
|
|
revision=1
|
|
|
|
archs=noarch
|
|
|
|
wrksrc="soupsieve-${version}"
|
|
|
|
build_style=python-module
|
|
|
|
pycompile_module="soupsieve"
|
|
|
|
hostmakedepends="python-setuptools python3-setuptools"
|
|
|
|
checkdepends="python-pytest python-lxml python-html5lib python-BeautifulSoup4
|
|
|
|
python-backports.functools_lru_cache python3-pytest python3-lxml
|
|
|
|
python3-html5lib python3-BeautifulSoup4"
|
|
|
|
short_desc="CSS4 selector implementation for Python2 Beautiful Soup"
|
|
|
|
maintainer="Aluísio Augusto Silva Gonçalves <aluisio@aasg.name>"
|
|
|
|
license="MIT"
|
|
|
|
homepage="https://facelessuser.github.io/soupsieve/"
|
|
|
|
distfiles="${PYPI_SITE}/s/soupsieve/soupsieve-${version}.tar.gz"
|
2019-02-17 12:58:59 +00:00
|
|
|
checksum=eaed742b48b1f3e2d45ba6f79401b2ed5dc33b2123dfe216adb90d4bfa0ade26
|
2019-02-15 13:37:04 +00:00
|
|
|
|
|
|
|
do_check() {
|
|
|
|
PY2PATH="${PWD}/build-2.7/lib"
|
|
|
|
PY3PATH="${PWD}/build-${py3_ver}/lib"
|
|
|
|
|
|
|
|
PYTHONPATH="${PY2PATH}" python2 -m pytest
|
|
|
|
PYTHONPATH="${PY3PATH}" python3 -m pytest
|
|
|
|
}
|
|
|
|
|
|
|
|
post_install() {
|
|
|
|
vlicense LICENSE.md
|
2019-02-17 12:58:59 +00:00
|
|
|
|
|
|
|
# Remove tests outside of the namespace
|
|
|
|
rm -rf ${DESTDIR}/${py3_sitelib}/tests
|
|
|
|
rm -rf ${DESTDIR}/${py2_sitelib}/tests
|
2019-02-15 13:37:04 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
python3-soupsieve_package() {
|
|
|
|
archs=noarch
|
|
|
|
pycompile_module="soupsieve"
|
|
|
|
short_desc="${short_desc/Python2/Python3}"
|
|
|
|
pkg_install() {
|
|
|
|
vmove "usr/lib/python3*"
|
|
|
|
vlicense LICENSE.md
|
|
|
|
}
|
|
|
|
}
|