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
"

View file

@ -1,37 +0,0 @@
# Maintainer: Antoine Martin (ayakael) <dev@ayakael.net>
# Contributor: Antoine Martin (ayakael) <dev@ayakael.net>
_pyname=click-repl
pkgname="py3-$_pyname"
pkgver=0.2.0
pkgrel=2
arch="noarch"
pkgdesc="REPL plugin for Click"
url="https://pypi.python.org/project/$_pyname"
license="MIT"
depends="py3-click py3-prompt_toolkit py3-six"
makedepends="py3-setuptools"
checkdepends="py3-pytest"
subpackages="$pkgname-doc"
source="$pkgname-$pkgver.tar.gz::https://pypi.io/packages/source/${_pyname:0:1}/$_pyname/$_pyname-$pkgver.tar.gz"
builddir="$srcdir"/$_pyname-$pkgver
build() {
python3 setup.py build
}
check() {
export PYTHONPATH="build:$PYTHONPATH"
pytest -v || true
}
package() {
python3 setup.py install --skip-build \
--optimize=1 \
--root="$pkgdir"
install -vDm 644 README.rst -t "$pkgdir/usr/share/doc/$pkgname/"
install -vDm 644 LICENSE -t "$pkgdir/usr/share/licenses/$pkgname/"
}
sha512sums="
b377e1efda7f8dd20b90f531c49dd42a372db789331f8cfcca63169be17fe429dfc66d5a1e5ef7376eacfdb41167f933ec68b63a170aae45af09b086f826edf0 py3-click-repl-0.2.0.tar.gz
"