python-hypercorn
LOW
maintainer medaminezghal
1 votes
scanned 2026-10-25 15:42:54.962645
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
4
pkgname=python-$_name
5
pkgver=0.18.0
6
pkgrel=1
7
pkgdesc='A ASGI Server based on Hyper libraries and inspired by Gunicorn.'
8
arch=('any')
9
url='https://github.com/pgjones/hypercorn'
10
license=('MIT')
11
depends=('python'
12
'python-h11'
13
'python-h2'
14
'python-priority'
15
'python-wsproto')
16
makedepends=('python-pdm-backend'
17
'python-build'
18
'python-installer')
19
checkdepends=('python-httpx'
20
'python-hypothesis'
21
'python-pytest'
22
'python-pytest-asyncio'
23
'python-pytest-trio'
24
'python-trio')
25
optdepends=('python-aioquic: h3'
26
'python-uvloop: uvloop')
27
source=("$_name-$pkgver.tar.gz::$url/archive/refs/tags/$pkgver.tar.gz")
28
sha256sums=('094c4b85d69aeb9a79e28e8f8c5f3d87dbd8c1e6668c085ff08104f02fde0497')
29
30
prepare() {
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
36
build() {
37
cd "$_name-$pkgver"
38
python -m build --wheel --no-isolation
39
}
40
41
check() {
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
55
package() {
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) | Severity | Rules |
|---|---|---|
| 2026-10-25 15:42:54 | Low | 1 |