34 lines
870 B
Text
34 lines
870 B
Text
# Maintainer: psykose <alice@ayaya.dev>
|
|
pkgname=py3-click-repl
|
|
pkgver=0.2.0
|
|
pkgrel=1
|
|
pkgdesc="Subcommand REPL for click apps"
|
|
url="https://github.com/click-contrib/click-repl"
|
|
arch="noarch"
|
|
license="MIT"
|
|
depends="python3 py3-six py3-click py3-prompt_toolkit"
|
|
makedepends="py3-gpep517 py3-setuptools py3-wheel"
|
|
checkdepends="py3-pytest"
|
|
subpackages="$pkgname-pyc"
|
|
source="$pkgname-$pkgver.tar.gz::https://github.com/click-contrib/click-repl/archive/refs/tags/$pkgver.tar.gz"
|
|
builddir="$srcdir/click-repl-$pkgver"
|
|
|
|
build() {
|
|
gpep517 build-wheel \
|
|
--wheel-dir dist \
|
|
--output-fd 3 3>&1 >&2
|
|
}
|
|
|
|
check() {
|
|
PYTHONPATH=. \
|
|
pytest
|
|
}
|
|
|
|
package() {
|
|
python3 -m installer -d "$pkgdir" \
|
|
dist/*.whl
|
|
}
|
|
|
|
sha512sums="
|
|
888ef2d4082cbecbdab70d707296b20d3dcc0a13fe06ef103fbe04a3f29381fe0f3284c2eb38c6d3eb8b026063cba470a519524e98b9eadd06a5946c669ffc3b py3-click-repl-0.2.0.tar.gz
|
|
"
|