# Template file for 'python-stem'
pkgname=python-stem
version=1.8.0
revision=1
archs=noarch
wrksrc="stem-${version/b/}"
build_style=python-module
pycompile_module="stem"
hostmakedepends="python-devel python3-devel"
depends="python-cryptography"
short_desc="Python2 controller library for Tor"
maintainer="Orphaned <orphan@voidlinux.org>"
license="LGPL-3.0-or-later"
homepage="https://stem.torproject.org/"
changelog="https://stem.torproject.org/change_log.html#version-1-7"
distfiles="${PYPI_SITE}/s/stem/stem-${version}.tar.gz"
checksum=a0b48ea6224e95f22aa34c0bc3415f0eb4667ddeae3dfb5e32a6920c185568c2
alternatives="stem:tor-prompt:/usr/bin/tor-prompt2"

python3-stem_package() {
	archs=noarch
	depends="python3-cryptography"
	pycompile_module="stem"
	short_desc="${short_desc/Python2/Python3}"
	alternatives="stem:tor-prompt:/usr/bin/tor-prompt3"
	pkg_install() {
		vmove usr/bin/tor-prompt3
		vmove usr/lib/python3*
	}
}
