blob: 057c157a1902960251a0d02a957e2b91e3dbbca7 (
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
37
38
39
40
41
42
|
# Contributor: Thomas Boerger <thomas@webhippie.de>
# Maintainer: Thomas Boerger <thomas@webhippie.de>
pkgname=pgcli
pkgver=2.0.2
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="4aef5ddd21ea34c7579f3778deae112307c83ac37d4446c39bad767a4a8b558bbdd794dde638d9a1c694ec2ba67dd1b5773d87b443fc2080242ed0cc0ec8d5bc pgcli-2.0.2.tar.gz"
|