From 369a2f6efbd02498aed3681a3c07fd4a2f515a45 Mon Sep 17 00:00:00 2001 From: "A. Wilcox" Date: Wed, 17 Jul 2019 14:43:32 +0000 Subject: user/py3-websockets: new package --- user/py3-websockets/APKBUILD | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 user/py3-websockets/APKBUILD (limited to 'user/py3-websockets/APKBUILD') diff --git a/user/py3-websockets/APKBUILD b/user/py3-websockets/APKBUILD new file mode 100644 index 000000000..3dad1684a --- /dev/null +++ b/user/py3-websockets/APKBUILD @@ -0,0 +1,30 @@ +# Contributor: A. Wilcox +# Maintainer: A. Wilcox +pkgname=py3-websockets +_pkgname=${pkgname#py3-} +pkgver=8.0 +pkgrel=0 +pkgdesc="Python implementation of RFCs 6455 and 7692" +url="https://pypi.org/project/websockets/" +arch="all" +license="BSD-3-Clause" +depends="python3" +makedepends="python3-dev" +subpackages="" +source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz" +builddir="$srcdir/$_pkgname-$pkgver" + +build() { + python3 setup.py build +} + +check() { + python3 setup.py test +} + +package() { + mkdir -p "$pkgdir" + python3 setup.py install --prefix=/usr --root="$pkgdir" +} + +sha512sums="8ae408224367b4e1fcab4d39758f75902072b15e833ed9db41afc9b69deb8cb6f1c538c200785e260cd890f31562feaeb99bdbcec445c5561714a9f08b936f6f websockets-8.0.tar.gz" -- cgit v1.2.3-70-g09d2