python-hypercorn

LOW
maintainer medaminezghal 1 votes scanned 2026-10-25 15:42:54.962645
View on AUR
Why flagged

Uploaded within the last 14 days with 2 or fewer community votes — little peer review so far.

Triggered rules

Low Few votes, recently uploaded zero_votes_recent

Uploaded within the last 14 days with 2 or fewer community votes — little peer review so far.

PKGBUILD

1# Maintainer: Mohamed Amine Zghal (medaminezghal) <medaminezghal at outlook dot com>
2
3_name=hypercorn
4pkgname=python-$_name
5pkgver=0.18.0
6pkgrel=1
7pkgdesc='A ASGI Server based on Hyper libraries and inspired by Gunicorn.'
8arch=('any')
9url='https://github.com/pgjones/hypercorn'
10license=('MIT')
11depends=('python'
12 'python-h11'
13 'python-h2'
14 'python-priority'
15 'python-wsproto')
16makedepends=('python-pdm-backend'
17 'python-build'
18 'python-installer')
19checkdepends=('python-httpx'
20 'python-hypothesis'
21 'python-pytest'
22 'python-pytest-asyncio'
23 'python-pytest-trio'
24 'python-trio')
25optdepends=('python-aioquic: h3'
26 'python-uvloop: uvloop')
27source=("$_name-$pkgver.tar.gz::$url/archive/refs/tags/$pkgver.tar.gz")
28sha256sums=('094c4b85d69aeb9a79e28e8f8c5f3d87dbd8c1e6668c085ff08104f02fde0497')
29
30prepare() {
31 cd "$_name-$pkgver"
32 # Add :protocol to the CONNECT requests, as h2 4.4 rejects websocket CONNECT without it
33 sed -i 's/^\( *\)(":method", "CONNECT"),/&\n\1(":protocol", "websocket"),/' tests/asyncio/test_sanity.py tests/trio/test_sanity.py
34}
35
36build() {
37 cd "$_name-$pkgver"
38 python -m build --wheel --no-isolation
39}
40
41check() {
42 local pytest_options=(
43 -vv
44 --disable-warnings
45 --override-ini="addopts="
46 --showlocals
47 --strict-markers
48 )
49 cd "$_name-$pkgver"
50 python -m venv --system-site-packages test-env
51 test-env/bin/python -m installer dist/*.whl
52 test-env/bin/python -P -m pytest "${pytest_options[@]}"
53}
54
55package() {
56 cd "$_name-$pkgver"
57 python -m installer --destdir="$pkgdir" dist/*.whl
58 install -Dm644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname/
59}
60

Scan history

Scanned at (UTC)SeverityRules
2026-10-25 15:42:54 Low 1

Report a package

Reports go to the AURWatch maintainer (one person) and are read by hand. No login required.

0 / 4000
Your suggestion