# Description: Python parsing module. # URL: https://pypi.python.org/pypi/pyparsing/ # Maintainer: Danny Rawlins, crux at romster dot me # Depends on: python3-pip # Optional: python3-flit-core name=python3-pyparsing version=3.0.9 release=1 source=(https://files.pythonhosted.org/packages/source/${name:8:1}/${name#*-}/${name#*-}-$version.tar.gz) build() { cd ${name#*-}-$version _pyver=$(/usr/bin/python3 -c 'import sys; print("%s.%s" % sys.version_info[:2])') if prt-get isinst python3-flit-core; then /usr/bin/python3 -m build --wheel --skip-dependency-check --no-isolation /usr/bin/python3 -m installer --compile-bytecode 0 --destdir=$PKG dist/*.whl else /usr/bin/pip3 install --isolate --root=$PKG --ignore-installed --no-deps pyparsing fi rm -rf $PKG/usr/lib/python$_pyver/site-packages/pyparsing-$version.dist-info/{INSTALLER,REQUESTED} }