# Maintainer: Václav Kubernát pkgname=pyshv-git _gitname=pyshv pkgver=r187.71d5af3 pkgrel=2 pkgdesc='Python implementation of CPON, Chainpack and SHV RPC' url='https://gitlab.com/elektroline-predator/pyshv' arch=('any') license=('MIT') depends=('python-pyserial-asyncio' 'python-aioserial' 'python-dateutil' 'python-asyncinotify') makedepends=('git' 'python-build' 'python-setuptools' 'python-installer' 'python-wheel' 'python-pytest' 'python-pytest-asyncio' 'libshv') conflicts=('pyshv' 'pyshv-git') provides=('pyshv') source=('git+https://gitlab.com/elektroline-predator/pyshv.git') md5sums=('SKIP') pkgver() { cd "$srcdir/$_gitname" printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" } build() { cd "$srcdir/$_gitname" python -m build --wheel --no-isolation } check() { cd "$srcdir/$_gitname" pytest } package() { cd "$srcdir/$_gitname" python -m installer --destdir="$pkgdir" dist/*.whl }