void-packages/srcpkgs/python-stem/template
Alessio Sergi b37f15a70f python-stem: pycrypto -> cryptography
"Moved from the deprecated pycrypto module to cryptography for
validating signatures." (see docs/change_log.rst)
2018-06-06 13:07:07 +02:00

30 lines
838 B
Bash

# Template file for 'python-stem'
pkgname=python-stem
version=1.6.0
revision=2
noarch=yes
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.eu>"
license="LGPL-3"
homepage="https://stem.torproject.org/"
distfiles="${PYPI_SITE}/s/stem/stem-${version}.tar.gz"
checksum=d7fe1fb13ed5a94d610b5ad77e9f1b3404db0ca0586ded7a34afd323e3b849ed
alternatives="stem:tor-prompt:/usr/bin/tor-prompt2"
python3-stem_package() {
noarch=yes
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*
}
}