description="A Python ASGI web microframework with the same API as Flask"
url="https://files.pythonhosted.org"

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

makedepends=(python-wheel python-setuptools python-poetry-core python-aiofiles
             python-blinker python-click python-flask python-hypercorn)

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

version=0.19.6

source=(https://github.com/pallets/quart/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 
}
