void-packages/srcpkgs/python-hyper-h2/template
2020-04-25 21:38:35 +02:00

29 lines
797 B
Bash

# Template file for 'python-hyper-h2'
pkgname=python-hyper-h2
version=3.1.1
revision=3
archs=noarch
wrksrc="hyper-h2-${version}"
build_style=python-module
hostmakedepends="python-setuptools python3-setuptools"
depends="python python-hpack python-hyperframe"
short_desc="HTTP/2 State-Machine based protocol implementation(Python2)"
maintainer="Nathan Owens <ndowens04@gmail.com>"
license="MIT"
homepage="https://github.com/python-hyper/hyper-h2"
distfiles="${homepage}/archive/v${version}.tar.gz"
checksum=bbc86cd48c691189e324877d99f592b92e9876d1d256c77e980eb22809b5e624
post_install() {
vlicense LICENSE
}
python3-hyper-h2_package() {
archs=noarch
short_desc="${short_desc/Python2/Python3}"
depends="python3 python3-hpack python3-hyperframe"
pkg_install() {
vmove "usr/lib/python3*"
}
}