summaryrefslogtreecommitdiff
path: root/testing/py3-wasabi/APKBUILD
blob: 25162cb42cdaf14059a3b5ccd394100258ecc454 (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-wasabi
pkgver=1.1.0
pkgrel=0
pkgdesc="A lightweight console printing and formatting toolkit"
url="https://github.com/explosion/wasabi"
arch="noarch"
license="MIT"
depends="python3 py3-typing-extensions"
makedepends="py3-setuptools"
checkdepends="py3-pytest jupyter-nbconvert py3-ipykernel"
subpackages="$pkgname-doc"
source="wasabi-$pkgver.tar.gz::https://github.com/explosion/wasabi/archive/v$pkgver.tar.gz"
builddir="$srcdir/wasabi-$pkgver"

build() {
	python3 setup.py build
}

check() {
	pytest
}

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

	install -Dm644 README.md "$pkgdir/usr/share/doc/$pkgname/README.md"
}

sha512sums="
2337e54b5fc1d92886ce492ecdb8c02ab9f0f6f3f7a7fc1683477982022a9f46f4ca6cded65bcd6d172b993fb4bda8957b415fcf029c27267bfcac77126204df  wasabi-1.1.0.tar.gz
"