2024-11-16 10:05:48 +00:00

40 lines
1.0 KiB
Plaintext

# Maintainer: Hoang Nguyen <folliekazetani@protonmail.com>
pkgname=litecli
pkgver=1.12.4
pkgrel=0
pkgdesc="CLI for SQLite Databases with auto-completion and syntax highlighting"
url="https://litecli.com/"
arch="noarch"
license="BSD-3-Clause"
depends="
python3
py3-cli_helpers
py3-click
py3-configobj
py3-prompt_toolkit
py3-pygments
py3-sqlparse
"
makedepends="py3-gpep517 py3-setuptools py3-wheel"
checkdepends="py3-mock py3-pytest"
subpackages="$pkgname-pyc"
source="$pkgname-$pkgver.tar.gz::https://github.com/dbcli/litecli/archive/refs/tags/v$pkgver.tar.gz"
build() {
gpep517 build-wheel --wheel-dir .dist --output-fd 3 3>&1 >&2
}
check() {
python3 -m venv --clear --without-pip --system-site-packages .testenv
.testenv/bin/python3 -m installer .dist/*.whl
.testenv/bin/python3 -m pytest
}
package() {
python3 -m installer -d "$pkgdir" .dist/*.whl
}
sha512sums="
3635858ec2702b59f54c1bf6539f3ac547dd3ed725ee6c2edbe31d74660fc8bd3d137420b765e968b5b5f6043bd4a323c48cd6b0c3a3adbf97701a44f0dca62d litecli-1.12.4.tar.gz
"