blob: 00f0d581acd060ca980f74e23998afcba5d11b31 (
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
43
44
45
46
47
48
49
50
51
|
# Maintainer: Miodrag Tokić
# Contributor: Yuanji <self@gimo.me>
# Contributor: Aaron Abbott <aabmass at gmail dot com>
pkgname=mycli
pkgver=1.31.1
pkgrel=1
pkgdesc='A Terminal Client for MySQL with AutoCompletion and Syntax Highlighting'
arch=('any')
url='https://github.com/dbcli/mycli'
license=('BSD')
depends=(
'python'
'python-click'
'python-cryptography'
'python-pygments'
'python-prompt_toolkit'
'python-pymysql'
'python-sqlparse'
'python-sqlglot'
'python-configobj'
'python-cli_helpers'
'python-pyperclip'
'python-pyaes'
'python-pyfzf'
)
makedepends=(
'python-build'
'python-installer'
'python-wheel'
'python-setuptools'
'python-setuptools-scm'
)
optdepends=(
'python-paramiko: SSH support'
)
options=(!emptydirs)
source=("$pkgname-$pkgver.tar.gz::https://github.com/dbcli/mycli/archive/v${pkgver}.tar.gz")
sha256sums=('1a9d4fad049a6c8ee8f4040760b62cc00c872f7b36584f6f038630e1db24b21c')
build() {
export SETUPTOOLS_SCM_PRETEND_VERSION="$pkgver"
cd "$srcdir/$pkgname-$pkgver"
python -m build --wheel --no-isolation
}
package() {
cd "$srcdir/$pkgname-$pkgver"
install -D -m 644 LICENSE.txt "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
python -m installer --destdir="$pkgdir" dist/*.whl
}
|