void-packages/srcpkgs/python-Twisted/template

39 lines
1.2 KiB
Bash

# Template file for 'python-Twisted'
pkgname=python-Twisted
version=20.3.0
revision=4
wrksrc="Twisted-${version}"
build_style=python2-module
hostmakedepends="python-setuptools python-incremental"
makedepends="python-devel"
depends="python-setuptools python-zope.interface python-openssl
python-service_identity python-constantly python-incremental python-automat
python-hyperlink python-PyHamcrest"
short_desc="Asynchronous networking framework written in Python (Python2)"
maintainer="Alessio Sergi <al3hex@gmail.com>"
license="MIT"
homepage="https://twistedmatrix.com/"
changelog="https://raw.githubusercontent.com/twisted/twisted/trunk/NEWS.rst"
distfiles="${PYPI_SITE}/T/Twisted/Twisted-${version}.tar.bz2"
checksum=d72c55b5d56e176563b91d11952d13b01af8725c623e498db5507b6614fc1e10
alternatives="
twisted:cftp:/usr/bin/cftp2
twisted:ckeygen:/usr/bin/ckeygen2
twisted:conch:/usr/bin/conch2
twisted:mailmail:/usr/bin/mailmail2
twisted:pyhtmlizer:/usr/bin/pyhtmlizer2
twisted:tkconch:/usr/bin/tkconch2
twisted:trial:/usr/bin/trial2
twisted:twist:/usr/bin/twist2
twisted:twistd:/usr/bin/twistd2"
post_install() {
# don't conflict with python3-Twisted
for f in "${DESTDIR}"/usr/bin/*; do
mv "${f}"{,2}
done
vlicense LICENSE
}