[arch-commits] Commit in httpie/trunk (PKGBUILD)
Eli Schwartz
eschwartz at archlinux.org
Tue Aug 21 18:41:03 UTC 2018
Date: Tuesday, August 21, 2018 @ 18:41:03
Author: eschwartz
Revision: 373164
upgpkg: httpie 0.9.9-5
enable tests
Modified:
httpie/trunk/PKGBUILD
----------+
PKGBUILD | 26 +++++++++++++++++++-------
1 file changed, 19 insertions(+), 7 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2018-08-21 18:27:22 UTC (rev 373163)
+++ PKGBUILD 2018-08-21 18:41:03 UTC (rev 373164)
@@ -4,18 +4,31 @@
pkgname=httpie
pkgver=0.9.9
-pkgrel=4
+pkgrel=5
pkgdesc="cURL for humans"
-url="https://github.com/jkbr/httpie"
+url="https://github.com/jakubroztocil/httpie"
depends=('python-requests' 'python-pygments' 'python-setuptools')
-checkdepends=('python-pytest')
+checkdepends=('python-pytest' 'python-pytest-httpbin' 'python-mock')
conflicts=(python-httpie)
replaces=(python-httpie python2-httpie)
license=('BSD')
arch=('any')
-source=($pkgname-$pkgver.tar.gz::"https://github.com/jkbrzt/httpie/archive/$pkgver.tar.gz")
-sha1sums=('81fa9b74df29b4acc31a8f93ec658e5224f31a5e')
+source=($pkgname-$pkgver.tar.gz::"https://github.com/jakubroztocil/httpie/archive/$pkgver.tar.gz"
+ "https://github.com/jakubroztocil/httpie/commit/749b1e2aca11e1ae3e52c8f3894cf0515c917439.patch"
+ "https://github.com/jakubroztocil/httpie/commit/9776a6dea0308e05c23db05b542920ebd6bea6c4.patch")
+sha1sums=('81fa9b74df29b4acc31a8f93ec658e5224f31a5e'
+ 'a1caeb5f2ba538bd8bec1ea27d8368ce7b216a76'
+ '2d0245bdecb2ccb122e927b263affed1cad68374')
+prepare() {
+ cd $pkgname-$pkgver
+
+ # fix for breaking change by https://github.com/pytest-dev/pytest/pull/2849
+ patch -p1 -i ../749b1e2aca11e1ae3e52c8f3894cf0515c917439.patch
+ # https://github.com/jakubroztocil/httpie/pull/584
+ patch -p1 -i ../9776a6dea0308e05c23db05b542920ebd6bea6c4.patch
+}
+
build() {
cd $pkgname-$pkgver
python3 setup.py build
@@ -29,6 +42,5 @@
check() {
cd $pkgname-$pkgver
- # Requires: python-raven python-pbr and pytest-httpbin
- #python3 setup.py test
+ python3 setup.py test
}
More information about the arch-commits
mailing list