# Contributor: prspkt # Maintainer: prspkt pkgname=py3-importlib-metadata _pkgname=importlib_metadata pkgver=0.23 pkgrel=1 pkgdesc="Tool to read metadata from Python packages" url="https://gitlab.com/python-devs/importlib_metadata" arch="noarch" license="Apache-2.0" depends="py3-zipp" makedepends="py3-setuptools" source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz" builddir="$srcdir"/$_pkgname-$pkgver replaces="py-importlib-metadata" # Backwards compatibility provides="py-importlib-metadata=$pkgver-r$pkgrel" # Backwards compatibility build() { python3 setup.py build } check() { python3 setup.py check } package() { python3 setup.py install --prefix=/usr --root="$pkgdir" } sha512sums="56594dfd67733842d83547770a09e12b4e4e3c000b7c9743206e13e4629906bb7271065e03c387f5114bac7f673fc17594d2ef90af23cd34b7ededecaf3fd47a importlib_metadata-0.23.tar.gz"