void-packages/srcpkgs/python-Cheroot/template
2018-05-21 11:08:33 +02:00

37 lines
1.1 KiB
Bash

broken="https://github.com/cherrypy/cheroot/blob/master/CHANGES.rst#v630"
# Template file for 'python-Cheroot'
pkgname=python-Cheroot
version=6.3.0
revision=1
noarch=yes
wrksrc="cheroot-${version}"
build_style=python-module
pycompile_module="cheroot"
hostmakedepends="python-setuptools python3-setuptools"
depends="python-six python-more-itertools python-backports.functools_lru_cache"
short_desc="High-performance, pure-Python HTTP server (Python2)"
maintainer="Andrea Brancaleoni <abc@pompel.me>"
license="BSD-3-Clause"
homepage="https://github.com/cherrypy/cheroot"
distfiles="${PYPI_SITE}/c/cheroot/cheroot-${version}.tar.gz"
checksum=56c07903580d51ebd456e764d2bef334e97025369cfe6af56357053a9ff72446
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-six python3-more-itertools"
short_desc="${short_desc/Python2/Python3}"
pkg_install() {
vmove usr/lib/python3*
vlicense LICENSE.md
}
}