aports/testing/pgcli/APKBUILD
2019-04-17 11:45:52 +00:00

43 lines
1.0 KiB
Plaintext

# Contributor: Thomas Boerger <thomas@webhippie.de>
# Maintainer: Thomas Boerger <thomas@webhippie.de>
pkgname=pgcli
pkgver=2.1.0
pkgrel=0
pkgdesc="Postgres CLI with autocompletion and syntax highlighting"
url="https://www.pgcli.com"
arch="noarch"
license="BSD"
depends="python3
py3-pgspecial
py3-click
py3-pygments
py3-prompt_toolkit>2.0.0
py3-psycopg2
py3-sqlparse<0.3.0
py3-configobj
py3-humanize
py3-wcwidth
py3-cli_helpers>1.0.0
py3-setproctitle"
checkdepends="pytest py3-mock"
makedepends="python3-dev"
source="$pkgname-$pkgver.tar.gz::https://files.pythonhosted.org/packages/source/${pkgname:0:1}/$pkgname/$pkgname-$pkgver.tar.gz"
builddir="$srcdir/$pkgname-$pkgver"
check() {
cd "$builddir"
python3 -m pytest tests
}
build() {
cd "$builddir"
python3 setup.py build
}
package() {
cd "$builddir"
python3 setup.py install --prefix=/usr --root="$pkgdir"
}
sha512sums="1b9e4c542a1b87c7322e29c19fff1d09d53051a513e68d7ffe963d474a2bb6c5b1cb1dc58adc413d32b196ebb22ad9a1cf2a3b999da4d66b762b64e9d1083346 pgcli-2.1.0.tar.gz"