summaryrefslogtreecommitdiff
path: root/main/py3-wcwidth/APKBUILD
blob: c1881301f7e33243cedcc4f01c7b5c972c4646d8 (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
36
# Contributor: Thomas Boerger <thomas@webhippie.de>
# Maintainer: Thomas Boerger <thomas@webhippie.de>
pkgname=py3-wcwidth
_pkgname=wcwidth
pkgver=0.2.5
pkgrel=3
pkgdesc="Measures number of Terminal column cells of wide-character codes"
url="https://pypi.python.org/pypi/wcwidth"
arch="noarch"
license="MIT"
depends="python3"
makedepends="py3-setuptools"
checkdepends="py3-pytest"
source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz"
builddir="$srcdir/$_pkgname-$pkgver"

replaces="py-wcwidth" # Backwards compatibility
provides="py-wcwidth=$pkgver-r$pkgrel" # Backwards compatibility
# circular dependency on pytest
options="$options !check"

build() {
	python3 setup.py build
}

check() {
	python3 -m pytest
}

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

sha512sums="
567604186fc6810cc794828f656aebda380a85d9a0dadde7743fadcd43cf29b022016055ee2a5c077399ac7c07f48d6d4ee4fa91a44e6efed96b7a8659280a97  wcwidth-0.2.5.tar.gz
"