void-packages/srcpkgs/python3-Cheroot/template
2021-10-09 08:00:37 -04:00

28 lines
947 B
Bash

# Template file for 'python3-Cheroot'
pkgname=python3-Cheroot
version=8.4.5
revision=2
wrksrc="cheroot-${version}"
build_style=python3-module
hostmakedepends="python3-setuptools_scm"
depends="python3-setuptools python3-six
python3-more-itertools python3-jaraco.functools"
short_desc="High-performance, pure-Python HTTP server (Python3)"
maintainer="bra1nwave <bra1nwave@protonmail.com>"
license="BSD-3-Clause"
homepage="https://github.com/cherrypy/cheroot"
changelog="https://github.com/cherrypy/cheroot/blob/master/CHANGES.rst"
distfiles="${PYPI_SITE}/c/cheroot/cheroot-${version}.tar.gz"
checksum=b6c18caf5f79cdae668c35fc8309fc88ea4a964cce9e2ca8504fab13bcf57301
alternatives="cheroot:cheroot:/usr/bin/cheroot3"
post_patch() {
# Don't need setuptools_scm_git_archive for the tarball
vsed -e '/setuptools_scm_git_archive/d' -i setup.cfg
}
post_install() {
mv "${DESTDIR}/usr/bin/cheroot" "${DESTDIR}/usr/bin/cheroot3"
vlicense LICENSE.md
}