# Contributor: Patrycja Rosa # Maintainer: Patrycja Rosa pkgname=py3-findpython pkgver=0.6.3 pkgrel=0 pkgdesc="Utility to find python versions on your system" url="https://github.com/frostming/findpython" arch="noarch" license="MIT" depends="py3-packaging" makedepends="py3-gpep517 py3-installer py3-pdm-backend" checkdepends="py3-pytest" subpackages="$pkgname-pyc" source="https://github.com/frostming/findpython/archive/$pkgver/py3-findpython-$pkgver.tar.gz" builddir="$srcdir/findpython-$pkgver" build() { export PDM_BUILD_SCM_VERSION=$pkgver gpep517 build-wheel \ --wheel-dir .dist \ --output-fd 3 3>&1 >&2 } check() { python3 -m venv --clear --without-pip --system-site-packages .testenv .testenv/bin/python3 -m installer .dist/*.whl .testenv/bin/python3 -m pytest } package() { python3 -m installer -d "$pkgdir" \ .dist/*.whl } sha512sums=" 1ffd4d8642186c25786e15c6a555b9c2129afd1d5a8c2fccd47c3c64e9e239341d93d617e514667f5ce44034664d5f79aca5dd8349f0469fcf2f22674e06d21d py3-findpython-0.6.3.tar.gz "