# Contributor: prspkt # Maintainer: Bart Ribbers pkgname=py3-importlib-metadata pkgver=5.2.0 pkgrel=1 pkgdesc="Read metadata from Python packages" url="https://github.com/python/importlib_metadata" arch="noarch" license="Apache-2.0" depends=" py3-zipp " makedepends=" py3-gpep517 py3-setuptools py3-setuptools_scm py3-wheel " checkdepends=" py3-pyfakefs py3-pytest python3-tests " subpackages="$pkgname-pyc" source="https://pypi.python.org/packages/source/i/importlib_metadata/importlib_metadata-$pkgver.tar.gz" #options="!check" # Tests fail to find module "test" builddir="$srcdir/importlib_metadata-$pkgver" export SETUPTOOLS_SCM_PRETEND_VERSION="$pkgver" build() { gpep517 build-wheel \ --wheel-dir .dist \ --output-fd 3 3>&1 >&2 } check() { pytest tests } package() { python3 -m installer \ -d "$pkgdir" \ .dist/importlib_metadata-$pkgver-py3-none-any.whl } sha512sums=" 9168af203b60751e5a28c14bdb327c9471f0f4d712f3ac9f8e69cbf3d3c6d999aa15ae7b16c036e47ec6802ca155d75c204e90caf8776a197562b514a36bbb0f importlib_metadata-5.2.0.tar.gz "