blob: 5b9b91c967ddfd441a791b744e4441fd241ce644 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
|
# Contributor: Peter Bui <pnutzh4x0r@gmail.com>
# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch>
pkgname=py3-httplib2
_pkgname=httplib2
pkgver=0.21.0
pkgrel=1
pkgdesc="Python3 HTTP client library"
url="https://github.com/httplib2/httplib2"
arch="noarch"
license="MIT"
depends="python3"
makedepends="py3-setuptools"
checkdepends="py3-pytest py3-pytest-cov py3-pytest-timeout py3-cryptography py3-six"
source="httplib2-$pkgver.tar.gz::https://github.com/httplib2/httplib2/archive/refs/tags/v$pkgver.tar.gz
"
builddir="$srcdir/$_pkgname-$pkgver"
replaces="py-httplib2" # Backwards compatibility
provides="py-httplib2=$pkgver-r$pkgrel" # Backwards compatibility
# secfixes:
# 0.19.0-r0:
# - CVE-2021-21240
build() {
python3 setup.py build
}
check() {
# https://github.com/httplib2/httplib2/issues/221
PYTHONPATH="$PWD/build/lib" python3 -m pytest tests/ -k 'not test_client_cert_password_verified'
}
package() {
python3 setup.py install --prefix=/usr --root="$pkgdir"
}
sha512sums="
8269014f05f5e4b668c7dea8ae708b27a60b4216d712a93ab58b74f399ab5bc0dcdcd8c1411ccff587c7bdb6bc20917451ad969e5bef2d5c5262327cabe17bbb httplib2-0.21.0.tar.gz
"
|