[arch-commits] Commit in httpie/trunk (PKGBUILD)
Jelle van der Waa
jelle at archlinux.org
Sun Jul 22 17:15:31 UTC 2018
Date: Sunday, July 22, 2018 @ 17:15:30
Author: jelle
Revision: 362847
wip tests
Modified:
httpie/trunk/PKGBUILD
----------+
PKGBUILD | 16 +++++++++++-----
1 file changed, 11 insertions(+), 5 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2018-07-22 16:44:45 UTC (rev 362846)
+++ PKGBUILD 2018-07-22 17:15:30 UTC (rev 362847)
@@ -8,21 +8,27 @@
pkgdesc="cURL for humans"
url="https://github.com/jkbr/httpie"
depends=('python-requests' 'python-pygments' 'python-setuptools')
+checkdepends=('python-pytest')
conflicts=(python-httpie)
replaces=(python-httpie python2-httpie)
license=('BSD')
arch=('any')
-#source=("https://github.com/jkbrzt/httpie/archive/$pkgver.tar.gz")
-source=("https://pypi.python.org/packages/28/93/4ebf2de4bc74bd517a27a600b2b23a5254a20f28e6e36fc876fd98f7a51b/httpie-0.9.9.tar.gz")
-md5sums=('13ed0b79b65e793eb288e563db38b2a2')
+source=($pkgname-$pkgver.tar.gz::"https://github.com/jkbrzt/httpie/archive/$pkgver.tar.gz")
+sha1sums=('81fa9b74df29b4acc31a8f93ec658e5224f31a5e')
build() {
- cd httpie-$pkgver
+ cd $pkgname-$pkgver
python3 setup.py build
}
package() {
- cd httpie-$pkgver
+ cd $pkgname-$pkgver
install -Dm644 LICENSE "$pkgdir/usr/share/licenses/httpie/LICENSE"
python3 setup.py install --root="$pkgdir" --optimize=1
}
+
+check() {
+ cd $pkgname-$pkgver
+ # Requires: python-raven python-pbr and pytest-httpbin
+ #python3 setup.py test
+}
More information about the arch-commits
mailing list