mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-07-21 10:15:12 +03:00
this marginally increases install speed by not checking if it needs a rebuild. also remove --prefix=/usr as it defaults to /usr already. might break a build or two, will fix later
29 lines
767 B
Text
29 lines
767 B
Text
# Contributor: Bart Ribbers <bribbers@disroot.org>
|
|
# Contributor: Leo <thinkabit.ukim@gmail.com>
|
|
# Maintainer:
|
|
pkgname=py3-scripttest
|
|
pkgver=1.3.0
|
|
pkgrel=4
|
|
pkgdesc="Helper to test command-line scripts"
|
|
url="https://pypi.org/project/scripttest/"
|
|
arch="noarch"
|
|
license="MIT"
|
|
depends="python3"
|
|
makedepends="py3-setuptools"
|
|
checkdepends="py3-pytest"
|
|
source="https://github.com/pypa/scripttest/archive/$pkgver/scripttest-$pkgver.tar.gz"
|
|
builddir="$srcdir/scripttest-$pkgver"
|
|
|
|
build() {
|
|
python3 setup.py build
|
|
}
|
|
|
|
check() {
|
|
pytest
|
|
}
|
|
|
|
package() {
|
|
python3 setup.py install --skip-build --root="$pkgdir"
|
|
}
|
|
|
|
sha512sums="038bfb1726bff85b6e3675be51db829d3519b47665266f6ae1d3c5c6f4f06e7b16742262ca1ba240544e9bd39ae96c1be0bd5e8583736f72bb04241a1bb8acf6 scripttest-1.3.0.tar.gz"
|