2024-03-25 14:19:42 +00:00

38 lines
1.0 KiB
Plaintext

# Contributor: Patrycja Rosa <alpine@ptrcnull.me>
# Maintainer: Patrycja Rosa <alpine@ptrcnull.me>
pkgname=py3-findpython
pkgver=0.5.1
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="
968c9366c39fce33dd4df7cd24a3e6b7ea6e09fd0fa89e534a603f9ba2cccd63eedc303c1e917de34ab82efc29e4b7a79b6a9792940164bc73f970a34683e648 py3-findpython-0.5.1.tar.gz
"