46 lines
1.3 KiB
Bash
46 lines
1.3 KiB
Bash
# Template file for 'python-Cheroot'
|
|
pkgname=python-Cheroot
|
|
version=6.5.8
|
|
revision=1
|
|
archs=noarch
|
|
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="bra1nwave <brainwave@openmailbox.org>"
|
|
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=427e7e3ce51ad5a6e5cf953252b5782d5dfbeb544c09910634971bc06df6621b
|
|
alternatives="cheroot:cheroot:/usr/bin/cheroot2"
|
|
|
|
pre_build() {
|
|
vsed -i setup.cfg \
|
|
-e '/setuptools_scm/d' \
|
|
-e '/use_scm_version/d' \
|
|
-e '/backports.*/s/$/;python_version<"3.4"/' \
|
|
-e "/name = /a\
|
|
version = ${version}"
|
|
}
|
|
|
|
post_install() {
|
|
vlicense LICENSE.md
|
|
}
|
|
|
|
python3-Cheroot_package() {
|
|
archs=noarch
|
|
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
|
|
}
|
|
}
|