mirror of
https://github.com/void-linux/void-packages.git
synced 2025-08-01 18:32:58 +02:00
parent
14b25555ac
commit
18217f72b1
2 changed files with 41 additions and 0 deletions
40
srcpkgs/python-soupsieve/template
Normal file
40
srcpkgs/python-soupsieve/template
Normal file
|
@ -0,0 +1,40 @@
|
||||||
|
# Template file for 'python-soupsieve'
|
||||||
|
pkgname=python-soupsieve
|
||||||
|
version=1.7.3
|
||||||
|
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"
|
||||||
|
checksum=@ee7798ee2621a6c598924a4ce8b952a46d6e17d6504531c6333aec0b73b449eb
|
||||||
|
|
||||||
|
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
|
||||||
|
}
|
||||||
|
|
||||||
|
python3-soupsieve_package() {
|
||||||
|
archs=noarch
|
||||||
|
pycompile_module="soupsieve"
|
||||||
|
short_desc="${short_desc/Python2/Python3}"
|
||||||
|
pkg_install() {
|
||||||
|
vmove "usr/lib/python3*"
|
||||||
|
vlicense LICENSE.md
|
||||||
|
}
|
||||||
|
}
|
1
srcpkgs/python3-soupsieve
Symbolic link
1
srcpkgs/python3-soupsieve
Symbolic link
|
@ -0,0 +1 @@
|
||||||
|
python-soupsieve
|
Loading…
Add table
Reference in a new issue