mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-06-04 08:55:20 +02:00
40 lines
1.1 KiB
Text
40 lines
1.1 KiB
Text
# Maintainer: Hoang Nguyen <folliekazetani@protonmail.com>
|
|
pkgname=litecli
|
|
pkgver=1.15.0
|
|
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
|
|
# 'LLM_CLI_COMMANDS' is not defined, llm is not packaged
|
|
.testenv/bin/python3 -m pytest --ignore=tests/test_llm_special.py
|
|
}
|
|
|
|
package() {
|
|
python3 -m installer -d "$pkgdir" .dist/*.whl
|
|
}
|
|
|
|
sha512sums="
|
|
246457b522b00e8b33a88297a35e4bd5c8860363cc8b3faaf380e9c91dd07ff2fcf49f8de1efb7cabe211717ae78d1833022580cac1caa3658351866fdc94f2a litecli-1.15.0.tar.gz
|
|
"
|