mirror of
https://github.com/void-linux/void-packages.git
synced 2025-06-09 00:23:52 +02:00
36 lines
937 B
Bash
36 lines
937 B
Bash
# Template file for 'python-Cheroot'
|
|
pkgname=python-Cheroot
|
|
version=5.4.0
|
|
revision=2
|
|
noarch=yes
|
|
wrksrc="cheroot-${version}"
|
|
build_style=python-module
|
|
pycompile_module="cheroot"
|
|
hostmakedepends="python-setuptools python3-setuptools"
|
|
depends="python-six"
|
|
short_desc="High-performance, pure-Python HTTP server"
|
|
maintainer="Andrea Brancaleoni <abc@pompel.me>"
|
|
license="3-clause-BSD"
|
|
homepage="https://github.com/cherrypy/cheroot"
|
|
distfiles="${PYPI_SITE}/c/cheroot/cheroot-${version}.tar.gz"
|
|
checksum=f4b3d2eaa949b8a2f6676e3bca7c68cd358e4aa6bab437362b4bee6781626135
|
|
|
|
pre_build() {
|
|
sed -i setup.py \
|
|
-e '/setuptools_scm/d' \
|
|
-e "s|use_scm_version=True|version='${version}'|"
|
|
}
|
|
post_install() {
|
|
vlicense LICENSE.md LICENSE
|
|
}
|
|
|
|
python3-Cheroot_package() {
|
|
noarch=yes
|
|
depends="python3-six"
|
|
pycompile_module="cheroot"
|
|
short_desc="${short_desc/Python2/Python3}"
|
|
pkg_install() {
|
|
vmove usr/lib/python3*
|
|
vlicense LICENSE.md LICENSE
|
|
}
|
|
}
|