description="Python3 binding for the libxml2 and libxslt libraries"
url=" https://files.pythonhosted.org/"

packager="spiky <spiky@nutyx.org>"
contributors="Tnut"

makedepends=(python-setuptools python-wheel libxslt)
run=()

name=python-lxml
_name="lxml"
alias=(${_name})

version=5.3.0

source=(https://files.pythonhosted.org/packages/source/l/lxml/lxml-$version.tar.gz)

build() {
cd ${_name}-$version

pip3 wheel -w dist \
    --no-build-isolation \
    --no-deps $PWD
  pip3 install --no-index \
    --find-links dist \
    --no-cache-dir    \
    --no-user         \
    --root=$PKG       \
    ${_name}

  find $PKG -type d -name vendor -o -name tests |xargs rm -rf
}
