2024-12-13 05:39:15 +00:00

53 lines
1.3 KiB
Plaintext

# Contributor: Thomas Boerger <thomas@webhippie.de>
# Maintainer: omni <omni+alpine@hack.org>
maintainer="omni <omni+alpine@hack.org>"
pkgname=mycli
pkgver=1.29.2
pkgrel=0
pkgdesc="MySQL CLI with autocompletion and syntax highlighting"
url="https://www.mycli.net/"
arch="noarch"
license="BSD-3-Clause"
depends="
python3
py3-cli_helpers
py3-click
py3-configobj
py3-cryptography
py3-prompt_toolkit
py3-pyaes
py3-pyfzf
py3-pygments
py3-pymysql
py3-pyperclip
py3-sqlglot
py3-sqlparse
"
makedepends="python3-dev py3-gpep517 py3-paramiko py3-setuptools py3-wheel"
checkdepends="py3-pytest py3-mock"
subpackages="$pkgname-pyc"
source="https://files.pythonhosted.org/packages/source/m/mycli/mycli-$pkgver.tar.gz"
build() {
gpep517 build-wheel \
--wheel-dir .dist \
--output-fd 3 3>&1 >&2
}
check() {
# click 8.1 output differs
python3 -m venv --clear --without-pip --system-site-packages .testenv
.testenv/bin/python3 -m installer .dist/*.whl
.testenv/bin/python3 -m pytest -v test
}
package() {
python3 -m installer -d "$pkgdir" \
.dist/*.whl
rm -rf "$pkgdir"/usr/lib/python3*/site-packages/test/
}
sha512sums="
13279ec14a0310323f1e407147749e8c628d9cc60688080e691ccfd9cdffd4d8d840a18b6a81075e08247b8a64a19808fbedf2898ab0b2e80ec2906182f23f28 mycli-1.29.2.tar.gz
"