mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-01-16 22:22:12 +01:00
41 lines
1.0 KiB
Plaintext
41 lines
1.0 KiB
Plaintext
# Contributor: Thomas Boerger <thomas@webhippie.de>
|
|
# Maintainer: Thomas Boerger <thomas@webhippie.de>
|
|
pkgname=mycli
|
|
pkgver=1.19.0
|
|
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 py3-setuptools"
|
|
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="6a8477f0bc360708d018e1e44867b7f832cddb5bb1054cecb5fd78e83602c410bdeaca2d1788ee4e53cc5e8d55570792d6bf4cdaad02904a596864595e0738c2 mycli-1.19.0.tar.gz"
|