void-packages/srcpkgs/python3-jsonrpc-server/template

23 lines
674 B
Bash

# Template file for 'python3-jsonrpc-server'
pkgname=python3-jsonrpc-server
version=0.3.4
revision=3
wrksrc="${pkgname/3}-${version}"
build_style=python3-module
hostmakedepends="python3-setuptools"
depends="python3-ultrajson"
short_desc="Python library implementing asynchronous JSON RPC server"
maintainer="k4leg <d0xi@inbox.ru>"
license="MIT"
homepage="https://github.com/palantir/python-jsonrpc-server"
distfiles="${PYPI_SITE}/p/${pkgname/3}/${pkgname/3}-${version}.tar.gz"
checksum=c73bf5495c9dd4d2f902755bedeb6da5afe778e0beee82f0e195c4655352fe37
patch_args="-Np1"
post_patch() {
vsed -i setup.py -e 's/\bujson<=1\.35\b/ujson/'
}
post_install() {
vlicense LICENSE
}