52 lines
1.3 KiB
Text
52 lines
1.3 KiB
Text
# Contributor: Michał Polański <michal@polanski.me>
|
|
# Maintainer: Michał Polański <michal@polanski.me>
|
|
pkgname=py3-httpcore
|
|
pkgver=0.15.0
|
|
pkgrel=2
|
|
pkgdesc="Minimal HTTP client"
|
|
url="https://www.encode.io/httpcore/"
|
|
license="BSD-3-Clause"
|
|
arch="noarch !armhf !ppc64le" # limited by py3-anyio
|
|
depends="
|
|
python3
|
|
py3-anyio
|
|
py3-certifi
|
|
py3-h11
|
|
py3-sniffio
|
|
py3-trio<0.22
|
|
"
|
|
makedepends="py3-setuptools"
|
|
checkdepends="
|
|
py3-h2
|
|
py3-hpack
|
|
py3-hyperframe
|
|
py3-pytest
|
|
py3-pytest-asyncio
|
|
py3-pytest-httpbin
|
|
py3-pytest-trio
|
|
py3-socksio
|
|
"
|
|
subpackages="$pkgname-doc"
|
|
source="https://github.com/encode/httpcore/archive/$pkgver/py3-httpcore-$pkgver.tar.gz
|
|
pytest-asyncio-warning.patch
|
|
"
|
|
builddir="$srcdir/httpcore-$pkgver"
|
|
|
|
build() {
|
|
python3 setup.py build
|
|
}
|
|
|
|
check() {
|
|
PYTHONPATH="$PWD/build/lib" pytest
|
|
}
|
|
|
|
package() {
|
|
python3 setup.py install --root="$pkgdir" --skip-build
|
|
|
|
install -Dm644 LICENSE.md "$pkgdir"/usr/share/licenses/$pkgname/LICENSE.md
|
|
}
|
|
|
|
sha512sums="
|
|
3c25630d582448e3c7d46176c8862e4d92c6c4aac954bfe46b06e26297b32f996db2e002a87c7187accb5bf4ef86e82d7f9051404bee651ce5254119571d0c95 py3-httpcore-0.15.0.tar.gz
|
|
28aa7bc050d56a09df5eb19c2edc8eda389a77c73c043945dcf74f8832387849d7a08c9366c403f451c65ab888720fcc4c5d233d3fb9a6628e91800f6c82ab3f pytest-asyncio-warning.patch
|
|
"
|