2019-08-08 23:40:33 +10:00
|
|
|
# Description: A Python library that parses CSS3 Selectors and translates them to XPath 1.0.
|
|
|
|
# URL: http://pypi.python.org/pypi/cssselect
|
2023-08-13 06:28:08 -04:00
|
|
|
# Maintainer: John McQuah, jmcquah at disroot dot org
|
2023-11-09 18:35:27 +00:00
|
|
|
# Depends on: python3-build python3-wheel
|
2019-08-08 23:40:33 +10:00
|
|
|
|
|
|
|
name=python3-cssselect
|
2023-11-09 18:35:27 +00:00
|
|
|
_name=${name#python3-}
|
2022-10-29 22:01:05 +00:00
|
|
|
version=1.2.0
|
2023-11-09 18:35:27 +00:00
|
|
|
release=2
|
|
|
|
source=(https://files.pythonhosted.org/packages/source/${_name::1}/$_name/$_name-$version.tar.gz)
|
2019-08-08 23:40:33 +10:00
|
|
|
|
|
|
|
build() {
|
2023-11-09 18:35:27 +00:00
|
|
|
cd $_name-$version
|
|
|
|
/usr/bin/python3 -m build --wheel --skip-dependency-check --no-isolation
|
|
|
|
/usr/bin/pip3 install --isolate --root=$PKG \
|
|
|
|
--no-deps --ignore-installed dist/*.whl
|
2019-08-08 23:40:33 +10:00
|
|
|
}
|