backports/py3-click-repl: move from user

This commit is contained in:
Antoine Martin 2023-05-05 09:38:29 -04:00
parent 08f91ce909
commit 96387b5427
Signed by: forge
GPG key ID: D62A472A4AA7D541
2 changed files with 34 additions and 37 deletions

View file

@ -0,0 +1,34 @@
# 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
"