From 0a508b9c03eed8a08b505525739630a61e8f21b1 Mon Sep 17 00:00:00 2001 From: root Date: Thu, 10 Jan 2019 22:46:48 -0600 Subject: [PATCH] New package: python-wsproto-0.12.0 closes #6856 --- srcpkgs/python-wsproto/template | 30 ++++++++++++++++++++++++++++++ srcpkgs/python3-wsproto | 1 + 2 files changed, 31 insertions(+) create mode 100644 srcpkgs/python-wsproto/template create mode 120000 srcpkgs/python3-wsproto diff --git a/srcpkgs/python-wsproto/template b/srcpkgs/python-wsproto/template new file mode 100644 index 00000000000..0102814f2c9 --- /dev/null +++ b/srcpkgs/python-wsproto/template @@ -0,0 +1,30 @@ +# Template file for 'python-wsproto' +pkgname=python-wsproto +version=0.12.0 +revision=1 +noarch=yes +wrksrc="wsproto-${version}" +build_style=python-module +pycompile_module="wsproto" +hostmakedepends="python-setuptools python3-setuptools" +depends="python python-h11 python-enum34" +short_desc="Sans-IO WebSocket protocol implementation (Python2)" +maintainer="Nathan Owens " +license="MIT" +homepage="https://wsproto.readthedocs.io" +distfiles="https://github.com/python-hyper/wsproto/archive/${version}.tar.gz" +checksum=a133e55752d29cba690d00d51ecbfec6624d15f7cd0634452d3b03b495c2086c + +post_install() { + vlicense LICENSE +} + +python3-wsproto_package() { + noarch=yes + pycompile_module="wsproto" + depends="python3 python3-h11" + short_desc="${short_desc/Python2/Python3}" + pkg_install() { + vmove "usr/lib/python3*" + } +} diff --git a/srcpkgs/python3-wsproto b/srcpkgs/python3-wsproto new file mode 120000 index 00000000000..fb613840577 --- /dev/null +++ b/srcpkgs/python3-wsproto @@ -0,0 +1 @@ +python-wsproto \ No newline at end of file