Tuan Anh Tran e9710ebf74 main/py3-scripttest: build with gpep517
Signed-off-by: Tuan Anh Tran <me@tuananh.org>
2025-09-16 12:46:37 +02:00

34 lines
847 B
Plaintext

# Contributor: Bart Ribbers <bribbers@disroot.org>
# Contributor: Leo <thinkabit.ukim@gmail.com>
# Maintainer:
pkgname=py3-scripttest
pkgver=1.3.0
pkgrel=7
pkgdesc="Helper to test command-line scripts"
url="https://pypi.org/project/scripttest/"
arch="noarch"
license="MIT"
depends="python3"
makedepends="py3-gpep517 py3-setuptools"
checkdepends="py3-pytest"
subpackages="$pkgname-pyc"
source="https://github.com/pypa/scripttest/archive/$pkgver/scripttest-$pkgver.tar.gz"
builddir="$srcdir/scripttest-$pkgver"
build() {
gpep517 build-wheel \
--wheel-dir .dist \
--output-fd 3 3>&1 >&2
}
check() {
pytest
}
package() {
python3 -m installer -d "$pkgdir" \
.dist/*.whl
}
sha512sums="038bfb1726bff85b6e3675be51db829d3519b47665266f6ae1d3c5c6f4f06e7b16742262ca1ba240544e9bd39ae96c1be0bd5e8583736f72bb04241a1bb8acf6 scripttest-1.3.0.tar.gz"