26 lines
798 B
Bash
26 lines
798 B
Bash
# Template file for 'python3-soupsieve'
|
|
pkgname=python3-soupsieve
|
|
version=1.9.5
|
|
revision=4
|
|
wrksrc="soupsieve-${version}"
|
|
build_style=python3-module
|
|
hostmakedepends="python3-setuptools"
|
|
checkdepends="python3-pytest python3-lxml python3-html5lib python3-BeautifulSoup4"
|
|
short_desc="CSS4 selector implementation for Python3 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"
|
|
checksum=e2c1c5dee4a1c36bcb790e0fabd5492d874b8ebd4617622c4f6a731701060dda
|
|
|
|
do_check() {
|
|
PYTHONPATH="${PWD}/build/lib" python3 -m pytest
|
|
}
|
|
|
|
post_install() {
|
|
vlicense LICENSE.md
|
|
|
|
# Remove tests outside of the namespace
|
|
rm -rf ${DESTDIR}/${py3_sitelib}/tests
|
|
}
|