description="General parsing module for Python"
url="https://github.com/pyparsing/pyparsing/"
contributors="Rems,Tnut"
packager="spiky <spiky@nutyx.org>"
 
name=python-parsing
_name="pyparsing"
alias=(${_name})

version=3.1.2

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

source=(https://github.com/pyparsing/pyparsing/archive/refs/tags/$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 
}
