[arch-commits] Commit in python-requests-hawk/trunk (PKGBUILD)

Balló György bgyorgy at archlinux.org
Thu Apr 15 17:35:05 UTC 2021


    Date: Thursday, April 15, 2021 @ 17:35:04
  Author: bgyorgy
Revision: 919172

Minor changes

Modified:
  python-requests-hawk/trunk/PKGBUILD

----------+
 PKGBUILD |   15 ++++++++++-----
 1 file changed, 10 insertions(+), 5 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2021-04-15 17:29:44 UTC (rev 919171)
+++ PKGBUILD	2021-04-15 17:35:04 UTC (rev 919172)
@@ -4,20 +4,25 @@
 pkgname=python-requests-hawk
 pkgver=1.1.0
 pkgrel=1
-pkgdesc="Hawk authentication strategy for the requests python library"
+pkgdesc='Hawk authentication strategy for the requests python library'
 arch=('any')
-url="https://github.com/mozilla-services/requests-hawk"
+url='https://github.com/mozilla-services/requests-hawk'
 license=('Apache')
 depends=('python-mohawk' 'python-requests')
-source=("$pkgname-$pkgver.tar.gz::https://github.com/mozilla-services/$_pkgname/archive/$pkgver.tar.gz")
+source=("https://github.com/mozilla-services/$_pkgname/archive/$pkgver/$pkgname-$pkgver.tar.gz")
 sha256sums=('ed12a67ee0a6b1d8b6c878d99a8c5819f359acb3a69fd8b69dc95ea6106b935f')
 
 build() {
   cd $_pkgname-$pkgver
-  python3 setup.py build
+  python setup.py build
 }
 
+check() {
+  cd $_pkgname-$pkgver
+  python setup.py test
+}
+
 package() {
   cd $_pkgname-$pkgver 
-  python3 setup.py install --root="$pkgdir" --optimize=1
+  python setup.py install --root="$pkgdir" --optimize=1 --skip-build
 }



More information about the arch-commits mailing list