void-packages/srcpkgs/python-h11/template
2019-10-19 20:33:11 +02:00

30 lines
777 B
Bash

# Template file for 'python-h11'
pkgname=python-h11
version=0.9.0
revision=1
archs=noarch
wrksrc=h11-${version}
build_style=python-module
pycompile_module="h11"
hostmakedepends="python-setuptools python3-setuptools"
depends="python"
short_desc="Bring-your-own-I/O implementation of HTTP/1.1 (Python2)"
maintainer="Nathan Owens <ndowens04@gmail.com>"
license="MIT"
homepage="https://github.com/python-hyper/h11"
distfiles="https://github.com/python-hyper/h11/archive/v${version}.tar.gz"
checksum=77b543bed05fb7b1e267dc8552d502b6f9f69d3812c8d58d0a56d0f148d2ae06
post_install() {
vlicense LICENSE.txt
}
python3-h11_package() {
archs=noarch
pycompile_module="h11"
depends="python3"
short_desc="${short_desc/Python2/Python3}"
pkg_install() {
vmove "usr/lib/python3*"
}
}