aports/community/mycli/APKBUILD
2023-04-22 16:29:18 +00:00

46 lines
1.1 KiB
Plaintext

# Contributor: Thomas Boerger <thomas@webhippie.de>
# Maintainer: omni <omni+alpine@hack.org>
pkgname=mycli
pkgver=1.26.1
pkgrel=2
pkgdesc="MySQL CLI with autocompletion and syntax highlighting"
url="https://www.mycli.net/"
arch="noarch"
license="BSD-3-Clause"
depends="
python3
py3-pyaes
py3-click
py3-pygments
py3-prompt_toolkit
py3-pymysql
py3-sqlglot
py3-sqlparse
py3-configobj
py3-cryptography
py3-cli_helpers
py3-pyperclip
"
makedepends="python3-dev py3-setuptools py3-paramiko"
checkdepends="py3-pytest py3-mock"
subpackages="$pkgname-pyc"
source="https://files.pythonhosted.org/packages/source/m/mycli/mycli-$pkgver.tar.gz"
build() {
python3 setup.py build
}
check() {
# click 8.1 output differs
python3 -m pytest -v -k "not test_auto_escaped_col_names" test
}
package() {
python3 setup.py install --skip-build --root="$pkgdir"
rm -rf "$pkgdir"/usr/lib/python3*/site-packages/test
}
sha512sums="
4be94e294bca3302bb93edfdb8eb3fee7147d417e0257ee02584a7ecbc52f269835e4a77e8aed11daa790fd375c68169c24b14f4018e0ea9323cf49a05a840f8 mycli-1.26.1.tar.gz
"