void-packages/srcpkgs/python3-pyserial/template

21 lines
661 B
Bash

# Template file for 'python3-pyserial'
pkgname=python3-pyserial
version=3.4
revision=8
build_style=python3-module
hostmakedepends="python3-setuptools"
depends="python3"
checkdepends="python3-pytest"
short_desc="Python3 module providing access for the serial port"
maintainer="Orphaned <orphan@voidlinux.org>"
license="BSD-3-Clause"
homepage="https://github.com/pyserial/pyserial"
distfiles="${PYPI_SITE}/p/pyserial/pyserial-${version}.tar.gz"
checksum=6e2d401fdee0eab996cf734e67773a0143b932772ca8b42451440cfed942c627
alternatives="pyserial:miniterm:/usr/bin/miniterm.py3"
post_install() {
mv ${DESTDIR}/usr/bin/miniterm.py{,3}
vlicense LICENSE.txt LICENSE
}