mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-01-20 08:02:26 +01:00
43 lines
1.0 KiB
Plaintext
43 lines
1.0 KiB
Plaintext
# Contributor: Thomas Boerger <thomas@webhippie.de>
|
|
# Maintainer: Thomas Boerger <thomas@webhippie.de>
|
|
pkgname=pgcli
|
|
pkgver=2.0.1
|
|
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="c68a6bb75f2ddd8306dae1ef28e3866e20698e277bf34956c64cc3698d55a93a4d47eef5cff13a1e55c17db5b3f58c8e70d0789bfd5b4a463dfb8fa073e5436b pgcli-2.0.1.tar.gz"
|