[arch-commits] Commit in (4 files)

Felix Yan felixonmars at archlinux.org
Mon Feb 26 17:39:38 UTC 2018


    Date: Monday, February 26, 2018 @ 17:39:37
  Author: felixonmars
Revision: 298582

addpkg: python-wsproto 0.11.0-1

Added:
  python-wsproto/
  python-wsproto/repos/
  python-wsproto/trunk/
  python-wsproto/trunk/PKGBUILD

----------+
 PKGBUILD |   53 +++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 53 insertions(+)

Added: python-wsproto/trunk/PKGBUILD
===================================================================
--- python-wsproto/trunk/PKGBUILD	                        (rev 0)
+++ python-wsproto/trunk/PKGBUILD	2018-02-26 17:39:37 UTC (rev 298582)
@@ -0,0 +1,53 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Simon Sapin <simon dot sapin at exyr dot org>
+# Contributor: Kyle Keen <keenerd at gmail.com>
+
+pkgbase=python-wsproto
+pkgname=(python-wsproto python2-wsproto)
+pkgver=0.11.0
+pkgrel=1
+pkgdesc="WebSockets state-machine based protocol implementation"
+url="https://github.com/python-hyper/wsproto"
+license=('MIT')
+arch=('any')
+makedepends=('python-h11' 'python2-h11' 'python-setuptools' 'python2-setuptools' 'python2-enum34')
+checkdepends=('python-pytest-runner' 'python2-pytest-runner')
+source=("https://pypi.io/packages/source/w/wsproto/wsproto-$pkgver.tar.gz")
+sha512sums=('583e030dc88971b3733e5e84e5fbaa70d6043d01485cabbbf45470baa31e4f511aea55e108132fc298aeae0031542af7bdd22b7ae25b11832179025a2fde4bdd')
+
+prepare() {
+  cp -a wsproto-$pkgver{,-py2}
+}
+
+build() {
+  cd "$srcdir"/wsproto-$pkgver
+  python setup.py build
+
+  cd "$srcdir"/wsproto-$pkgver-py2
+  python2 setup.py build
+}
+
+check() {
+  cd "$srcdir"/wsproto-$pkgver
+  python setup.py pytest
+
+  cd "$srcdir"/wsproto-$pkgver-py2
+  python2 setup.py pytest
+}
+
+package_python-wsproto() {
+  depends=('python-h11')
+
+  cd wsproto-$pkgver
+  python setup.py install --root="$pkgdir" --optimize=1
+  install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}
+
+package_python2-wsproto() {
+  depends=('python2-h11' 'python2-enum34')
+
+  cd wsproto-$pkgver-py2
+  python2 setup.py install --root="$pkgdir" --optimize=1
+  install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}


Property changes on: python-wsproto/trunk/PKGBUILD
___________________________________________________________________
Added: svn:keywords
## -0,0 +1 ##
+Id
\ No newline at end of property



More information about the arch-commits mailing list