void-packages/srcpkgs/python3-CherryPy/template

31 lines
1.1 KiB
Bash

# Template file for 'python3-CherryPy'
pkgname=python3-CherryPy
version=18.8.0
revision=3
build_style=python3-module
make_check_args="--ignore cherrypy/test/test_session.py
--deselect cherrypy/test/test_states.py::ServerStateTests::test_2_KeyboardInterrupt"
hostmakedepends="python3-wheel python3-setuptools_scm"
depends="python3-more-itertools python3-Cheroot python3-portend
python3-zc.lockfile python3-jaraco.collections"
checkdepends="${depends} python3-path python3-requests
python3-requests-toolbelt python3-pytest"
short_desc="Object-oriented HTTP framework (Python3)"
maintainer="Orphaned <orphan@voidlinux.org>"
license="BSD-3-Clause"
homepage="https://cherrypy.dev"
changelog="https://raw.githubusercontent.com/cherrypy/cherrypy/main/CHANGES.rst"
distfiles="${PYPI_SITE}/C/CherryPy/CherryPy-${version}.tar.gz"
checksum=9b48cfba8a2f16d5b6419cc657e6d51db005ba35c5e3824e4728bb03bbc7ef9b
alternatives="cherrypy:cherryd:/usr/bin/cherryd3"
pre_check() {
rm pytest.ini
}
post_install() {
rm -r ${DESTDIR}/${py3_sitelib}/cherrypy/{test,tutorial}
mv ${DESTDIR}/usr/bin/cherryd{,3}
vlicense LICENSE.md
}