| Name |
python-urllib3 |
| Description |
HTTP library with thread-safe connection pooling and file post support |
| Version |
2.6.3-1 |
| Package Base |
python-urllib3 |
| Homepage |
https://github.com/urllib3/urllib3 |
| Maintainers |
['Carl Smedstad <carsme@archlinux.org>', 'Felix Yan <felixonmars@archlinux.org>', 'George Rawlinson <grawlinson@archlinux.org>'] |
| Contributors |
['BorgHunter <borghunter@gmail.com>', 'Chris Brannon <cmbrannon79@gmail.com>', 'Patrice Peterson <runiq@archlinux.us>'] |
| Distro-repo |
https://gitlab.archlinux.org/archlinux/packaging/packages/python-urllib3 |
| Sources |
['https://github.com/urllib3/hypercorn/archive/d1719f8c1570cbd8e6a3719ffdb14a4d72880abb/hypercorn-d1719f8c1570cbd8e6a3719ffdb14a4d72880abb.tar.gz', 'https://github.com/urllib3/urllib3/archive/2.6.3/python-urllib3-2.6.3.tar.gz'] |
| Dependencies |
['python'] |
| Optional-Dependencies |
['python-brotli', 'python-brotlicffi', 'python-h2', 'python-pysocks'] |
| Build-Dependencies |
['python-build', 'python-hatch-vcs', 'python-hatchling', 'python-installer', 'python-wheel'] |
| Provides |
[] |
| Builddate |
09-01-2026 01:21:24 |
| Architecture |
any |
| Distro-Version |
|
| Licenses |
['MIT'] |
| Hash |
22e0963451334da0cc553b1d55e9af0bede07ba3d1a9ff4a27d241e732b02bf8 |
# Maintainer: Felix Yan <felixonmars@archlinux.org>
# Maintainer: Carl Smedstad <carsme@archlinux.org>
# Contributor: Patrice Peterson <runiq at archlinux dot us>
# Contributor: Chris Brannon <cmbrannon79@gmail.com>
# Contributor: BorgHunter <borghunter at gmail dot com>
pkgname=python-urllib3
pkgver=2.6.3
pkgrel=1
pkgdesc='HTTP library with thread-safe connection pooling and file post support'
arch=(any)
url='https://github.com/urllib3/urllib3'
license=(MIT)
depends=(python)
makedepends=(
python-build
python-hatch-vcs
python-hatchling
python-installer
python-wheel
)
checkdepends=(
python-cffi
python-cryptography
python-h2
python-httpx
python-idna
python-pyopenssl
python-pysocks
python-pytest
python-pytest-socket
python-pytest-timeout
python-quart
python-quart-trio
python-trio
python-trustme
# Required for building fork of hypercorn
python-poetry-core
)
optdepends=(
'python-brotli: Brotli support'
'python-brotlicffi: Brotli support'
'python-h2: HTTP/2 support'
'python-pysocks: SOCKS support'
)
_urllib3_hypercorn_commit=d1719f8c1570cbd8e6a3719ffdb14a4d72880abb
source=(
"$url/archive/$pkgver/$pkgname-$pkgver.tar.gz"
"https://github.com/urllib3/hypercorn/archive/$_urllib3_hypercorn_commit/hypercorn-$_urllib3_hypercorn_commit.tar.gz"
)
sha512sums=('554cedfd97d411fffa9a8ba46f592eab9e58c5fa8822ecd5a73ab45d6adfc188a6b9c4e238d02a4fbd3a1067a25a1de841a33d398d0641e22a32ea414876b615'
'62d6787d88a2e716f0ac04fc49f6cdc586e473a660ee754ff66961922ae78bcc75d1f78b091e78557dd60f006e8e480114738c7b4ff71beac804e4fc9603240b')
b2sums=('9c32dd5ce20643301cf878723f9305b2623895034a2965d74049b6ec8bf822972a3300810e9d56d3a1b89544df39e60f0dbdf97c8558d44c62fa129d568dd6b2'
'fcb5f49653401e6e4079e1c770d3cd407602d4d6764437b735bd4ec04191dec59cdc930822fa2aff726ee25cddd0f71fd457dedf31026bff1da121d93af8b768')
build() {
cd ${pkgname#python-}-$pkgver
export SETUPTOOLS_SCM_PRETEND_VERSION=$pkgver
python -m build --wheel --no-isolation --skip-dependency-check
}
check() {
cd ${pkgname#python-}-$pkgver
python -m venv --system-site-packages test-env
test-env/bin/python -m installer dist/*.whl
# The test suite depends on upstream's custom fork of hypercorn,
# https://github.com/urllib3/hypercorn/tree/urllib3-changes, and ~60/1800
# tests fail with the upstream hypercorn.
# See the following in dev-requirements.txt:
# # https://github.com/pgjones/hypercorn/issues/62
# # https://github.com/pgjones/hypercorn/issues/168
# # https://github.com/pgjones/hypercorn/issues/169
# hypercorn @ git+https://github.com/urllib3/hypercorn@urllib3-changes
python -m build --wheel --no-isolation ../hypercorn-$_urllib3_hypercorn_commit
test-env/bin/python -m installer ../hypercorn-$_urllib3_hypercorn_commit/dist/*.whl
# Deselected tests fail on the following assertion:
# > assert type(cm2.value.reason) is SSLError
# E assert <class 'urllib3.exceptions.NewConnectionError'> is SSLError
test-env/bin/python -m pytest \
--deselect=test/contrib/test_pyopenssl.py::TestSocketSSL::test_ssl_failed_fingerprint_verification \
--deselect=test/with_dummyserver/test_socketlevel.py::TestSSL::test_ssl_failed_fingerprint_verification \
-W=ignore::pytest.PytestUnhandledThreadExceptionWarning
}
package() {
cd ${pkgname#python-}-$pkgver
python -m installer --destdir="$pkgdir" dist/*.whl
install -vDm644 -t "$pkgdir/usr/share/licenses/$pkgname" LICENSE.txt
}