41 lines
1.1 KiB
Bash
41 lines
1.1 KiB
Bash
# Template file for 'python-Cheroot'
|
|
pkgname=python-Cheroot
|
|
version=6.5.2
|
|
revision=2
|
|
noarch=yes
|
|
wrksrc="cheroot-${version}"
|
|
build_style=python-module
|
|
pycompile_module="cheroot"
|
|
hostmakedepends="python-setuptools python3-setuptools"
|
|
depends="python-setuptools python-six python-more-itertools
|
|
python-backports.functools_lru_cache"
|
|
short_desc="High-performance, pure-Python HTTP server (Python2)"
|
|
maintainer="Orphaned <orphan@voidlinux.eu>"
|
|
license="BSD-3-Clause"
|
|
homepage="https://github.com/cherrypy/cheroot"
|
|
distfiles="${PYPI_SITE}/c/cheroot/cheroot-${version}.tar.gz"
|
|
checksum=ba2b9b0f59fcdcd920d51f61c19c4a8d65f8469741e634c04eaf6feca5b76837
|
|
alternatives="cheroot:cheroot:/usr/bin/cheroot2"
|
|
|
|
pre_build() {
|
|
sed -i setup.py \
|
|
-e '/setuptools_scm/d' \
|
|
-e "s|use_scm_version=True|version='${version}'|"
|
|
}
|
|
post_install() {
|
|
vlicense LICENSE.md
|
|
}
|
|
|
|
python3-Cheroot_package() {
|
|
noarch=yes
|
|
pycompile_module="cheroot"
|
|
depends="python3-setuptools python3-six python3-more-itertools"
|
|
alternatives="cheroot:cheroot:/usr/bin/cheroot3"
|
|
short_desc="${short_desc/Python2/Python3}"
|
|
pkg_install() {
|
|
vmove usr/bin/*3
|
|
vmove usr/lib/python3*
|
|
vlicense LICENSE.md
|
|
}
|
|
}
|