1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-23 03:05:48 +03:00
aports/community/py3-httplib2/APKBUILD

41 lines
1.2 KiB
Text

# Contributor: Peter Bui <pnutzh4x0r@gmail.com>
# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch>
pkgname=py3-httplib2
_pkgname=httplib2
pkgver=0.19.1
pkgrel=0
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"
source="https://files.pythonhosted.org/packages/source/h/httplib2/httplib2-$pkgver.tar.gz
fix-test-inject-space-after-bpo-43882.patch
"
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() {
PYTHONPATH="$PWD/build/lib" python3 -m pytest tests/
}
package() {
python3 setup.py install --prefix=/usr --root="$pkgdir"
}
sha512sums="
0c87b3c9923e81c83df5257ce60f7248d86a64aea0a02d5a3f34be68c692c6abd896f95214899dc6e81b23677efc7684a3cba4c1a47261176dd26c3988054e55 httplib2-0.19.1.tar.gz
88a9106f1005b2a2234c4fe20c3e271122732d25dce08e9f4f355701854fbfb176ad638a4cfee807bbc4cb063bd6913775a0d6b6c6724cb7948d430f985ae4c7 fix-test-inject-space-after-bpo-43882.patch
"