summaryrefslogtreecommitdiff
path: root/community/py3-scripttest/APKBUILD
blob: a6112233906cee8cb1e47bce116de55ba962b7bb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# 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 --prefix=/usr --root="$pkgdir"
}

sha512sums="038bfb1726bff85b6e3675be51db829d3519b47665266f6ae1d3c5c6f4f06e7b16742262ca1ba240544e9bd39ae96c1be0bd5e8583736f72bb04241a1bb8acf6  scripttest-1.3.0.tar.gz"