# Contributor: Fabian Affolter # Maintainer: Fabian Affolter pkgname=py3-distro _pkgname=distro pkgver=1.8.0 pkgrel=2 pkgdesc="A Linux OS platform information API" options="!check" # Some tests fail url="https://github.com/python-distro/distro" arch="noarch" license="Apache-2.0" depends="python3" makedepends="py3-gpep517 py3-setuptools py3-wheel" checkdepends="py3-pytest py3-pytest-cov" subpackages="$pkgname-pyc" source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz" builddir="$srcdir"/$_pkgname-$pkgver replaces=py-distro # Backwards compatibility provides=py-distro=$pkgver-r$pkgrel # Backwards compatibility build() { gpep517 build-wheel \ --wheel-dir .dist \ --output-fd 3 3>&1 >&2 } check() { python3 -m pytest } package() { python3 -m installer -d "$pkgdir" \ .dist/distro-*.whl } sha512sums=" 027fe8bc50e263dc49451932774f32cea7900820b6e30cc80afcdc84374777ba733137fdd8d27fec76f66ce9c579bc172721e7ae0f43e72dffbc092126b26af2 distro-1.8.0.tar.gz "