# Contributor: Duncan Bellamy # Contributor: Leo # Maintainer: Duncan Bellamy pkgname=py3-shellingham _realname=${pkgname/py3-/} pkgver=1.5.0 pkgrel=4 pkgdesc="Python3 module to poke around and find out running shell" url="https://github.com/sarugaku/shellingham" arch="noarch" license="MIT" depends="python3" makedepends="py3-gpep517 py3-setuptools py3-wheel" checkdepends="py3-pytest py3-pytest-mock" subpackages="$pkgname-pyc" source="$pkgname-$pkgver.tar.gz::https://github.com/sarugaku/shellingham/archive/$pkgver.tar.gz" builddir="$srcdir/$_realname-$pkgver" build() { 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=" 2f73acdb30da499493bb79a3db24133f5bcb88d4d755387a81bc04ec30fe91ca44761d7d49fe793495b09f1c34ff59ef320a1e001cf5628ddc62885c05466076 py3-shellingham-1.5.0.tar.gz "