[arch-commits] Commit in python-hawkauthlib/trunk (PKGBUILD)
Balló György
bgyorgy at archlinux.org
Thu Apr 15 19:05:12 UTC 2021
Date: Thursday, April 15, 2021 @ 19:05:12
Author: bgyorgy
Revision: 919198
Minor changes
Modified:
python-hawkauthlib/trunk/PKGBUILD
----------+
PKGBUILD | 16 +++++++++++-----
1 file changed, 11 insertions(+), 5 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2021-04-15 19:04:48 UTC (rev 919197)
+++ PKGBUILD 2021-04-15 19:05:12 UTC (rev 919198)
@@ -5,20 +5,26 @@
pkgname=python-hawkauthlib
pkgver=2.0.0
pkgrel=7
-pkgdesc="Low-level library for implementing MAC Access Authentication"
+pkgdesc='Low-level python library for implementing MAC Access Authentication'
arch=('any')
-url="https://github.com/mozilla-services/hawkauthlib"
+url='https://github.com/mozilla-services/hawkauthlib'
license=('MPL2')
depends=('python-requests' 'python-webob')
-source=("$pkgname-$pkgver.tar.gz::https://github.com/mozilla-services/$_pkgname/archive/v$pkgver.tar.gz")
+checkdepends=('python-pytest')
+source=("https://github.com/mozilla-services/$_pkgname/archive/v$pkgver/$pkgname-$pkgver.tar.gz")
sha256sums=('5ad32548bffdf328284c4fb56770ed7a1a39309aa8639be95759df05aec7e6d1')
build() {
cd $_pkgname-$pkgver
- python3 setup.py build
+ python setup.py build
}
+check() {
+ cd $_pkgname-$pkgver
+ pytest
+}
+
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