1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-16 04:35:13 +03:00
aports/testing/py3-cmd2/APKBUILD
2023-02-05 21:40:29 +01:00

33 lines
960 B
Text

# Contributor: prspkt <prspkt@protonmail.com>
# Maintainer: prspkt <prspkt@protonmail.com>
pkgname=py3-cmd2
pkgver=2.4.3
pkgrel=0
pkgdesc="Tool for building interactive command line applications in Python"
url="https://github.com/python-cmd2/cmd2"
arch="noarch"
license="MIT"
depends="python3 py3-attrs py3-pyperclip py3-wcwidth"
makedepends="py3-gpep517 py3-setuptools py3-setuptools_scm py3-wheel"
checkdepends="py3-pytest py3-pytest-mock py3-pytest-xdist py3-pytest-cov"
source="https://files.pythonhosted.org/packages/source/c/cmd2/cmd2-$pkgver.tar.gz"
builddir="$srcdir/cmd2-$pkgver"
build() {
gpep517 build-wheel \
--wheel-dir dist \
--output-fd 3 3>&1 >&2
}
check() {
pytest -k 'not test_send_to_paste_buffer'
}
package() {
python3 -m installer -d "$pkgdir" \
dist/cmd2*.whl
}
sha512sums="
1d440752262f38a742069e636373884edcc49c17ba17b21b24015cfe559b4df36b45ac9489f2f643897fbd38f54b8e6120daf07ef25d2f209af8a4ac8e4c0085 cmd2-2.4.3.tar.gz
"