aboutsummaryrefslogtreecommitdiffstats
path: root/testing/py3-click-log/APKBUILD
blob: f5c820b9efdcca7042ce613ef6bdf4177c5a9edb (plain) (blame)
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: Galen Abell <galen@galenabell.com>
# Maintainer: Galen Abell <galen@galenabell.com>
pkgname=py3-click-log
_pyname=click-log
pkgver=0.3.2
pkgrel=1
pkgdesc="Integrates logging with click"
url="https://github.com/click-contrib/click-log"
arch="noarch"
license="MIT"
depends="python3 py3-click"
makedepends="py3-setuptools"
checkdepends="py3-pytest"
source="https://files.pythonhosted.org/packages/source/${_pyname%${_pyname#?}}/$_pyname/$_pyname-$pkgver.tar.gz"
builddir="$srcdir/$_pyname-$pkgver"

build() {
	python3 setup.py build
}

check() {
	PYTHONPATH="$PWD/build/lib" pytest -v
}

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

sha512sums="8ae5c43d739127367bbcdcf32bfd4b34b2ea1c377948df3b8588e4bfe2b0f5e7a61d1ccc6cb32c77045b15251222866daffa5a7bfb7a907487548784ba345351  click-log-0.3.2.tar.gz"