void-packages/srcpkgs/python3-automat/template

33 lines
993 B
Bash

# Template file for 'python3-automat'
pkgname=python3-automat
version=22.10.0
revision=3
build_style=python3-module
hostmakedepends="python3-setuptools"
depends="python3-setuptools python3-attrs python3-six"
checkdepends="${depends} python3-pytest python3-pytest-benchmark python3-graphviz"
short_desc="Finite-state machines in Python (Python3)"
maintainer="Orphaned <orphan@voidlinux.org>"
license="MIT"
homepage="https://github.com/glyph/Automat"
distfiles="${PYPI_SITE}/A/Automat/Automat-${version}.tar.gz"
checksum=e56beb84edad19dcc11d30e8d9b895f75deeb5ef5e96b84a467066b3b84bb04e
alternatives="automat:automat-visualize:/usr/bin/automat-visualize3"
pre_build() {
sed -i setup.py \
-e '/print(/d' \
-e '/setup_requires=/,+3d' \
-e "s/use_scm_version=True/version='${version}'/"
}
# do_check() {
# PYTHONPATH="$(cd build/lib* && pwd)" \
# python3 -m pytest ${testjobs} automat/_test
# }
post_install() {
mv ${DESTDIR}/usr/bin/automat-visualize{,3}
vlicense LICENSE
}