mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-08-31 19:31:10 +02:00
49 lines
1.1 KiB
Plaintext
49 lines
1.1 KiB
Plaintext
# Contributor: Michał Polański <michal@polanski.me>
|
|
# Maintainer: Michał Polański <michal@polanski.me>
|
|
pkgname=py3-httpcore
|
|
pkgver=0.14.5
|
|
pkgrel=0
|
|
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
|
|
"
|
|
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"
|
|
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="
|
|
1705cf83df3ead454065e2ed4c300697c5d0a6609846a3eadfca2af2d9c1578f951c2f4bf3ac018c3cc984d2d2ccd39c4b2de781747588a6116eebe1007afff0 py3-httpcore-0.14.5.tar.gz
|
|
"
|