summaryrefslogtreecommitdiff
path: root/testing/py3-progressbar2/APKBUILD
blob: b664d36f9ce7388137eac9308a6ca405b7c29321 (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
34
35
# Contributor: Marian Buschsieweke <marian.buschsieweke@ovgu.de>
# Maintainer: Marian Buschsieweke <marian.buschsieweke@ovgu.de>
pkgname=py3-progressbar2
_pkgname=progressbar2
pkgver=4.2.0
pkgrel=0
pkgdesc="Text progress bar library for Python"
url="https://github.com/WoLpH/python-progressbar"
arch="noarch !s390x" # py3-utils
license="BSD-3-Clause"
replaces="py-progressbar" # for backwards compatibility
provides="py-progressbar=$pkgver-r$pkgrel" # for backwards compatibility
depends="python3 py3-utils py3-freezegun"
makedepends="py3-setuptools"
checkdepends="py3-pytest py3-pytest-cov"

source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz"

builddir="$srcdir/$_pkgname-$pkgver"

build() {
	python3 setup.py build
}

check() {
	PYTHONPATH="$PWD" pytest
}

package() {
	python3 setup.py install --skip-build --root="$pkgdir"
}

sha512sums="
d49c154e48bd730c2a7916ed53272ff20cb6fac8c9752734cf645d4701ffcdf25309bf493d03fdc5b6072a85b5f758332fa7448f307d4acc001ad4ab36303a68  progressbar2-4.2.0.tar.gz
"