# Contributor: prspkt # Maintainer: prspkt pkgname=py3-cmd2 pkgver=2.1.2 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-colorama py3-pyperclip py3-wcwidth" makedepends="py3-setuptools" 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 remove-setuptools_scm.patch " builddir="$srcdir/cmd2-$pkgver" prepare() { default_prepare sed -i "s/%VERSION%/$pkgver/" setup.py } build() { python3 setup.py build } check() { pytest } package() { python3 setup.py install --prefix=/usr --root="$pkgdir" } sha512sums=" 3f2edb336ec662e3b2e22abc947ffb669786142d29f0723b0d5bbf898ecff12096a91e08c4890dde79915b413c0f9a70945f1b5795ae12991e85d7ee79331d31 cmd2-2.1.2.tar.gz 8a6499b22d0a00f9b450313035510db7f0241a72cec49644ed3e7e88c34a94e1d43ae57dfe9107a47d7b48475651485283888ea07db2da128737670ffbeacd81 remove-setuptools_scm.patch "