blob: 317c88282f2dab1d948155d82974906f8f4b55e7 (
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
|
# Contributor: Thomas Boerger <thomas@webhippie.de>
# Maintainer: Thomas Boerger <thomas@webhippie.de>
pkgname=mycli
pkgver=1.18.2
pkgrel=1
pkgdesc="MySQL CLI with autocompletion and syntax highlighting"
url="https://www.mycli.net"
arch="noarch"
license="BSD"
options="!check" # builders /dev/tty not accessible
depends="python3
py3-click
py3-pygments
py3-prompt_toolkit>2.0.0
py3-pymysql
py3-sqlparse<0.3.0
py3-configobj
py3-cryptography
py3-cli_helpers"
makedepends="python3-dev"
checkdepends="pytest py3-mock"
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 test
}
build() {
cd "$builddir"
python3 setup.py build
}
package() {
cd "$builddir"
python3 setup.py install --prefix=/usr --root="$pkgdir"
}
sha512sums="6ecdb75cdb1d08755b18f6aff1634577ad8c213cbb0c9dd02dd35a6c2faf15e3e908c647964f70d5d72de75825f333921c145317d90e5e4c131a55b67a1dcf9e mycli-1.18.2.tar.gz"
|