pkgname=python3-importlib-metadata _pkgname=importlib_metadata pkgver=8.5.0 pkgrel=1 pkgdesc="Library to access the metadata for a Python package." arch=('x86_64') url='https://github.com/python/importlib_metadata' license=('BSD') depends=('python3-zipp') makedepends=('python3-build' 'python3-installer' 'python3-setuptools-scm' 'python3-wheel') source=("https://files.pythonhosted.org/packages/source/i/importlib_metadata/${_pkgname}-${pkgver}.tar.gz") sha256sums=('71522656f0abace1d072b9e5481a48f07c138e00f079c38c8f883823f9c26bd7') build() { cd ${_pkgname}-${pkgver} python3 -m build -nw } package() { cd ${_pkgname}-${pkgver} python3 -m installer --destdir=${pkgdir} dist/*.whl install -Dm644 LICENSE ${pkgdir}/usr/share/licenses/${pkgname}/LICENSE }