summaryrefslogtreecommitdiff
path: root/testing/py3-plac/APKBUILD
blob: ac083ddc6f79b74cb3bcddea3cf94b95c801adfb (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
30
31
32
33
# Contributor: Oleg Titov <oleg.titov@gmail.com>
# Maintainer: Oleg Titov <oleg.titov@gmail.com>
pkgname=py3-plac
pkgver=1.3.5
pkgrel=1
pkgdesc="Parsing the command line the easy way"
url="https://github.com/ialbert/plac"
arch="noarch"
license="BSD-2-Clause"
depends="python3"
makedepends="py3-setuptools"
checkdepends="py3-pytest"
source="https://files.pythonhosted.org/packages/source/p/plac/plac-$pkgver.tar.gz
	index.rst" # replicate index.rst for tests to pass
builddir="$srcdir/plac-$pkgver"

build() {
	python3 setup.py build
}

check() {
	cp "$srcdir/index.rst" "$builddir/doc/index.rst"
	PYTHONPATH="$PWD/build/lib" pytest-3 -v -k "not test_expected_help"
}

package() {
	python3 setup.py install --prefix=/usr --root="$pkgdir"
}

sha512sums="
9de705fbcc7585f9be8bb648ca3136cf0f031702e3def3ae069be6cff0e71969fe193e1420bd4018392f4a323cfe9131f86a10a2a2ecd0001fd1e82ad63a0d4a  plac-1.3.5.tar.gz
763e0838200a4dc25c4d4a74a9dc5b8ff8c32f5e67d00207a9f43274ad42eff1e0c6f08d04dc7123967d9426231d1ba3b0f0e8c0fcc688a528389e22f5b4c477  index.rst
"