[arch-commits] Commit in python-websocket-client/trunk (PKGBUILD)
Felix Yan
felixonmars at gemini.archlinux.org
Fri Feb 4 15:09:51 UTC 2022
Date: Friday, February 4, 2022 @ 15:09:50
Author: felixonmars
Revision: 1125665
upgpkg: python-websocket-client 1.2.3-2: fix dependency and tests
Modified:
python-websocket-client/trunk/PKGBUILD
----------+
PKGBUILD | 30 ++++++++++++------------------
1 file changed, 12 insertions(+), 18 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2022-02-04 14:55:07 UTC (rev 1125664)
+++ PKGBUILD 2022-02-04 15:09:50 UTC (rev 1125665)
@@ -5,37 +5,31 @@
# Contributor: Daniel YC Lin <dlin.tw at gmail>
# Contributor: Florian Bruhin <archlinux.org at the-compiler.org>
-_pkgbase='websocket-client'
-pkgname=python-$_pkgbase
+pkgname=python-websocket-client
pkgver=1.2.3
-pkgrel=1
+pkgrel=2
pkgdesc="WebSocket client library for Python"
arch=('any')
-url="https://github.com/$_pkgbase/$_pkgbase"
+url="https://github.com/websocket-client/websocket-client"
license=('LGPL')
-depends=('python-six')
+depends=('python')
makedepends=('python-setuptools')
-checkdepends=('python-pysocks')
-source=("https://pypi.io/packages/source/w/$_pkgbase/$_pkgbase-$pkgver.tar.gz")
+checkdepends=('python-pytest')
+source=("https://pypi.io/packages/source/w/websocket-client/websocket-client-$pkgver.tar.gz")
sha512sums=('5e5e00d43b7b4da5e2cb0d00d1e743e420791856e51e2b3d28d78219edcd7a2eace834ae4d7ee2faf89ab27c2b65f063e508f0e470a47ff9d88c36748b3dd113')
-prepare() {
- # Not sure why the conditions are not working :/
- sed -i "s/'backports.ssl_match_hostname'//" $_pkgbase-$pkgver/setup.py
-}
-
build() {
- cd $_pkgbase-$pkgver
+ cd websocket-client-$pkgver
python setup.py build
}
-# check() {
-# cd $_pkgbase-$pkgver
-# python setup.py test
-# }
+check() {
+ cd websocket-client-$pkgver
+ pytest
+}
package() {
- cd $_pkgbase-$pkgver
+ cd websocket-client-$pkgver
python setup.py install --root="$pkgdir" --optimize=1
install -Dm644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname/
}
More information about the arch-commits
mailing list