python-aiothreads

LOW
maintainer medaminezghal 1 votes scanned 2026-10-22 05:34:05.500565
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=aiothreads
4pkgname=python-$_name
5pkgver=1.1.4
6pkgrel=1
7pkgdesc='Glue between async and thread worlds.'
8arch=('any')
9url='https://github.com/mosquito/aiothreads'
10license=('Apache-2.0')
11depends=('python')
12makedepends=('python-hatchling'
13 'python-build'
14 'python-installer')
15checkdepends=('python-markdown-pytest'
16 'python-pytest'
17 'python-pytest-asyncio'
18 'python-pytest-mypy-plugins')
19source=("$_name-$pkgver.tar.gz::$url/archive/refs/tags/$pkgver.tar.gz")
20sha256sums=('ab20438de2879310baa4d06ab5026edc1363a5124120669f18ffd9b17b1dc900')
21
22prepare() {
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
32build() {
33 cd "$_name-$pkgver"
34 python -m build --wheel --no-isolation
35}
36
37check() {
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
47package() {
48 cd "$_name-$pkgver"
49 python -m installer --destdir="$pkgdir" dist/*.whl
50}
51

Scan history

Scanned at (UTC)SeverityRules
2026-10-22 05:34:05 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