void-packages/srcpkgs/python3-CherryPy/template

30 lines
927 B
Bash

# Template file for 'python3-CherryPy'
pkgname=python3-CherryPy
version=18.4.0
revision=2
archs=noarch
wrksrc="CherryPy-${version}"
build_style=python3-module
pycompile_module="cherrypy"
hostmakedepends="python3-setuptools"
depends="python3-setuptools python3-Cheroot python3-portend python3-zc.lockfile"
short_desc="Object-oriented HTTP framework (Python3)"
maintainer="bra1nwave <bra1nwave@protonmail.com>"
license="BSD-3-Clause"
homepage="https://cherrypy.org/"
changelog="https://raw.githubusercontent.com/cherrypy/cherrypy/master/CHANGES.rst"
distfiles="${PYPI_SITE}/C/CherryPy/CherryPy-${version}.tar.gz"
checksum=e5be00304ca303d7791d14b5ce1436428e18939b91806250387c363ae56c8f8f
alternatives="cherrypy:cherryd:/usr/bin/cherryd3"
pre_build() {
vsed -i setup.py \
-e '/setuptools_scm/d' \
-e "s|use_scm_version=True|version='${version}'|"
}
post_install() {
mv ${DESTDIR}/usr/bin/cherryd{,3}
vlicense LICENSE.md
}