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

Felix Yan felixonmars at gemini.archlinux.org
Tue Nov 30 20:23:23 UTC 2021


    Date: Tuesday, November 30, 2021 @ 20:23:23
  Author: felixonmars
Revision: 1058176

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 1058170, python-websocket-client/trunk/PKGBUILD)

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

Copied: python-websocket-client/repos/community-staging-any/PKGBUILD (from rev 1058170, python-websocket-client/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2021-11-30 20:23:23 UTC (rev 1058176)
@@ -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'
+pkgname=python-$_pkgbase
+pkgver=0.59.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')
+checkdepends=('python-pysocks')
+source=("https://pypi.io/packages/source/w/$_pkgbase/$_pkgbase-$pkgver.tar.gz")
+sha512sums=('c7f4a0336093de86fd00828049a836477a3c859cc4bddebd9e7d31eb746dab4de8fa11205a5fb182e5df3590964aa73f279310575dfabc4abc32157e80df42b1')
+
+prepare() {
+  # Not sure why the conditions are not working :/
+  sed -i "s/'backports.ssl_match_hostname'//" $_pkgbase-$pkgver/setup.py
+}
+
+build() {
+  cd $_pkgbase-$pkgver
+  python setup.py build
+}
+
+check() {
+  cd $_pkgbase-$pkgver
+  python setup.py test
+}
+
+package() {
+  cd $_pkgbase-$pkgver
+  python setup.py install --root="$pkgdir" --optimize=1
+  install -Dm644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname/
+}
+
+# vim:set ts=2 sw=2 ft=sh et:



More information about the arch-commits mailing list