ayaports/user/py3-click-repl/APKBUILD
2023-01-12 18:48:03 +00:00

37 lines
1.1 KiB
Text

# 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=1
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
"