[arch-commits] Commit in python-websocket-client/repos (2 files)

Felix Yan felixonmars at archlinux.org
Mon Nov 9 15:37:27 UTC 2020


    Date: Monday, November 9, 2020 @ 15:37:26
  Author: felixonmars
Revision: 747029

archrelease: copy trunk to community-staging-any

Added:
  python-websocket-client/repos/community-staging-any/
  python-websocket-client/repos/community-staging-any/PKGBUILD
    (from rev 747027, python-websocket-client/trunk/PKGBUILD)

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

Copied: python-websocket-client/repos/community-staging-any/PKGBUILD (from rev 747027, python-websocket-client/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2020-11-09 15:37:26 UTC (rev 747029)
@@ -0,0 +1,43 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Thore Bödecker <foxxx0 at archlinux.org>
+# Contributor: Matmas <matmas at matmas.net>
+# Contributor: Thomas Gubler <thomasgubler at gmail.com>
+# Contributor: Daniel YC Lin <dlin.tw at gmail>
+# Contributor: Florian Bruhin <archlinux.org at the-compiler.org>
+
+_pkgbase='websocket-client'
+__pkgbase="${_pkgbase//-/_}"
+pkgname=python-${_pkgbase}
+pkgver=0.57.0
+pkgrel=2
+pkgdesc="WebSocket client library for Python"
+arch=(any)
+url="https://github.com/${_pkgbase}/${_pkgbase}"
+license=('LGPL')
+depends=('python-six')
+makedepends=('python-setuptools')
+source=("https://pypi.io/packages/source/w/${_pkgbase}/${__pkgbase}-${pkgver}.tar.gz")
+sha512sums=('8677b00abbdd995ef1c2254f73a01713eb0707ee2549031f410205af7bbbf57b4730b38a78d683a90605c1412863f57a3829d8be1c058f3e9bfb177bd49c4525')
+
+prepare() {
+  # Not sure why the conditions are not working :/
+  sed -i "s/'backports.ssl_match_hostname'//" "${srcdir}/${__pkgbase}-${pkgver}/setup.py"
+}
+
+build() {
+  cd "${srcdir}/${__pkgbase}-${pkgver}"
+  python setup.py build
+}
+
+check() {
+  cd "${srcdir}/${__pkgbase}-${pkgver}"
+  python setup.py test
+}
+
+package() {
+  cd "${srcdir}/${__pkgbase}-${pkgver}"
+  python setup.py install --root="$pkgdir" --optimize=1
+  install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+}
+
+# vim:set ts=2 sw=2 ft=sh et:


More information about the arch-commits mailing list