1 # Maintainer: George Rawlinson <grawlinson@archlinux.org>
2 # Contributor: Felix Yan <felixonmars@archlinux.org>
3 # Contributor: Alexander Rødseth <rodseth@gmail.com>
4 # Contributor: Jan de Groot <jgc@archlinux.org>
5 # Contributor: Giorgio Lando <patroclo7@gmail.com>
6 # Contributor: Nicolas Quienot <niQo@aur>
7 # Contributor: Jesse Young <jesse.young@gmail.com>
8 # Contributor: Anton Eliasson <devel@antoneliasson.se>
10 pkgname=python-httplib2
13 pkgdesc='Comprehensive HTTP client library, supporting many features'
15 url='https://github.com/httplib2/httplib2'
32 'python-pytest-forked'
33 'python-pytest-timeout'
35 'python-pytest-randomly'
40 _commit=09eee8a81f552cbaa74f603f2dd9bcc3311ff6d7
42 "$pkgname::git+$url#commit=$_commit"
43 'use-system-certificates.patch'
46 'cb767cf95177d5a3c40dce49db0759b75a4ef3b9182ee931370386d7f380586818d8d940119907fe7a6b85504377571eb52176dcacbb37197cc85a5ae48fc149')
52 git describe --tags | sed 's/^v//'
58 patch -p1 -i "$srcdir/use-system-certificates.patch"
60 sed -e 's/==/>=/' -i requirements-test.txt
66 python -m build --wheel --no-isolation
71 # test_client_cert_password_verified fails with cryptography 36 https://github.com/httplib2/httplib2/issues/221
72 PYTHONPATH=build/lib pytest -k 'not test_client_cert_password_verified'
78 python setup.py install --root="$pkgdir" --optimize=1
81 install -vDm644 -t "$pkgdir/usr/share/licenses/$pkgname" LICENSE
84 # vim:set ts=2 sw=2 et: