python-aiothreads
LOW
maintainer medaminezghal
1 votes
scanned 2026-10-22 05:34:05.500565
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=aiothreads
4
pkgname=python-$_name
5
pkgver=1.1.4
6
pkgrel=1
7
pkgdesc='Glue between async and thread worlds.'
8
arch=('any')
9
url='https://github.com/mosquito/aiothreads'
10
license=('Apache-2.0')
11
depends=('python')
12
makedepends=('python-hatchling'
13
'python-build'
14
'python-installer')
15
checkdepends=('python-markdown-pytest'
16
'python-pytest'
17
'python-pytest-asyncio'
18
'python-pytest-mypy-plugins')
19
source=("$_name-$pkgver.tar.gz::$url/archive/refs/tags/$pkgver.tar.gz")
20
sha256sums=('ab20438de2879310baa4d06ab5026edc1363a5124120669f18ffd9b17b1dc900')
21
22
prepare() {
23
cd "$_name-$pkgver"
24
# Set the version from the release tag, as upstream's publish workflow does
25
sed -i "s/^version = .*/version = \"$pkgver\"/" pyproject.toml
26
# Replace python-async-timeout with asyncio.timeout from the standard library
27
sed -i 's/^from async_timeout import timeout$/from asyncio import timeout/' tests/test_decorators.py tests/test_iterator_wrapper.py
28
# Match the type names printed by the current mypy, which no longer prefixes builtins
29
sed -i 's/builtins\\\.//g' tests/test_type_checking.yml
30
}
31
32
build() {
33
cd "$_name-$pkgver"
34
python -m build --wheel --no-isolation
35
}
36
37
check() {
38
local pytest_options=(
39
-vv
40
--disable-warnings
41
--override-ini="addopts="
42
)
43
cd "$_name-$pkgver"
44
PYTHONPATH=$PWD pytest "${pytest_options[@]}" tests README.md
45
}
46
47
package() {
48
cd "$_name-$pkgver"
49
python -m installer --destdir="$pkgdir" dist/*.whl
50
}
51
Scan history
| Scanned at (UTC) | Severity | Rules |
|---|---|---|
| 2026-10-22 05:34:05 | Low | 1 |