summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 1fc5501a8ef4e3eb933bb5cb6447080970b26ae4 (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
# Maintainer: Luis Martinez <luis dot martinez at disroot dot org>
# Contributor: carstene1ns <arch carsten-teibes de> - http://git.io/ctPKG

pkgname=python-tablign
_pkg="${pkgname#python-}"
pkgver=0.3.7
pkgrel=1
pkgdesc="Aligns columns in your ASCII tables"
arch=('any')
url="https://github.com/nschloe/tablign"
license=('GPL3')
depends=('python')
makedepends=('python-setuptools' 'python-build' 'python-installer' 'python-wheel')
checkdepends=('python-pytest')
source=("$pkgname-$pkgver.tar.gz::$url/archive/v$pkgver.tar.gz")
sha256sums=('0ad958978b2daaf7d08e23f0cd3cff1496f48dc64147521c1c3f71915c617444')

build() {
	cd "$_pkg-$pkgver"
	python -m build --wheel --no-isolation
}

check() {
	cd "$_pkg-$pkgver"
	PYTHONPATH=src/ pytest -x
}

package() {
	cd "$_pkg-$pkgver"
	python -m installer --destdir="$pkgdir/" dist/*.whl
}