pkgname=python-pyproject-metadata pkgver=0.9.0 pkgrel=1 pkgdesc="PEP 621 metadata parsing" arch=('x86_64') url="https://github.com/pypa/python-pyproject-metadata" license=('MIT') depends=('python' 'python-packaging') makedepends=('python-build' 'python-installer' 'python-flit-core') source=(https://github.com/pypa/python-pyproject-metadata/archive/${pkgver}/${pkgname}-${pkgver}.tar.gz) sha256sums=(e23f57ee2c83e364badf6503a21e0d80db3440afe520b211c1d1e9060010f0f8) build() { cd ${pkgname#*-}-${pkgver} python3 -m build --wheel --no-isolation } package() { cd ${pkgname#*-}-${pkgver} python3 -m installer -d ${pkgdir} dist/*.whl }