python-aiocarbon

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=aiocarbon
4pkgname=python-$_name
5pkgver=0.15.3
6pkgrel=1
7pkgdesc='Asynchronous client for carbon.'
8arch=('any')
9url='https://github.com/mosquito/aiocarbon'
10license=('Apache-2.0')
11depends=('python'
12 'python-immutables')
13makedepends=('python-setuptools'
14 'python-build'
15 'python-installer')
16checkdepends=('python-pytest-asyncio'
17 'python-pytest')
18_commit=149771d99d4417cc704bbf6bed29022c89d7d960
19source=("$_name-$pkgver.tar.gz::$url/archive/$_commit.tar.gz"
20 "python310-loop-argument.patch")
21sha256sums=('8c09a2864f3a2d36ce73591ecef06ef0617425a800e8a46985937d355b5199d0'
22 '8ecf8a5c8cfafbc96a40087776d4603b0597c5b4e0f27cb6c175526caea57833')
23
24prepare() {
25 cd "$_name-$_commit"
26 # Set the version of the PyPI release, which upstream never committed
27 sed -i "s/^version_info = .*/version_info = (${pkgver//./, })/" $_name/version.py
28 # Drop the loop arguments removed from asyncio in Python 3.10 and use the running loop in the tests
29 patch -Np1 -i ../python310-loop-argument.patch
30}
31
32build() {
33 cd "$_name-$_commit"
34 python -m build --wheel --no-isolation
35}
36
37check() {
38 local pytest_options=(
39 -vv
40 --disable-warnings
41 )
42 cd "$_name-$_commit"
43 PYTHONPATH=$PWD pytest "${pytest_options[@]}" tests
44}
45
46package() {
47 cd "$_name-$_commit"
48 python -m installer --destdir="$pkgdir" dist/*.whl
49}
50

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