Skip to content
Snippets Groups Projects
Commit b26a451f authored by Keith Maxwell's avatar Keith Maxwell Committed by Leo
Browse files

community/py3-httplib2: upgrade to 0.17.4

Also enable check()
parent d6fcbe76
No related branches found
No related tags found
1 merge request!8111community/py3-httplib2: upgrade to 0.17.4
......@@ -2,7 +2,7 @@
# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch>
pkgname=py3-httplib2
_pkgname=httplib2
pkgver=0.17.3
pkgver=0.17.4
pkgrel=0
pkgdesc="Python3 HTTP client library"
url="https://github.com/httplib2/httplib2"
......@@ -10,8 +10,8 @@ arch="noarch"
license="MIT"
depends="python3"
makedepends="py3-setuptools"
options="!check" # 54 of 121 tests in python3/httplib2test.py fail
source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz"
checkdepends="py3-pytest py3-pytest-cov py3-pytest-timeout py3-mock"
source="https://files.pythonhosted.org/packages/source/h/httplib2/httplib2-$pkgver.tar.gz"
builddir="$srcdir/$_pkgname-$pkgver"
replaces="py-httplib2" # Backwards compatibility
......@@ -21,8 +21,12 @@ build() {
python3 setup.py build
}
check() {
PYTHONPATH="$PWD/build/lib" python3 -m pytest tests/
}
package() {
python3 setup.py install --prefix=/usr --root="$pkgdir"
}
sha512sums="1559ce1995ee2c31785c748e7312538d46a249347f5c5c9bbebda76c6f159691b9cb596353b47821f93f99af688f94d6c482d53c16bce505b9280fc995fb83d7 httplib2-0.17.3.tar.gz"
sha512sums="3d71111b8d163b9e02a8ed57bcbe0f511bc47f4d02c3f358f28e197cf7ec330830ea0b41ce4a8739bb05e25f512b4bba67e360ca7cc93062a90851214e8434e0 httplib2-0.17.4.tar.gz"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment