python-aiocarbon
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=aiocarbon
4
pkgname=python-$_name
5
pkgver=0.15.3
6
pkgrel=1
7
pkgdesc='Asynchronous client for carbon.'
8
arch=('any')
9
url='https://github.com/mosquito/aiocarbon'
10
license=('Apache-2.0')
11
depends=('python'
12
'python-immutables')
13
makedepends=('python-setuptools'
14
'python-build'
15
'python-installer')
16
checkdepends=('python-pytest-asyncio'
17
'python-pytest')
18
_commit=149771d99d4417cc704bbf6bed29022c89d7d960
19
source=("$_name-$pkgver.tar.gz::$url/archive/$_commit.tar.gz"
20
"python310-loop-argument.patch")
21
sha256sums=('8c09a2864f3a2d36ce73591ecef06ef0617425a800e8a46985937d355b5199d0'
22
'8ecf8a5c8cfafbc96a40087776d4603b0597c5b4e0f27cb6c175526caea57833')
23
24
prepare() {
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
32
build() {
33
cd "$_name-$_commit"
34
python -m build --wheel --no-isolation
35
}
36
37
check() {
38
local pytest_options=(
39
-vv
40
--disable-warnings
41
)
42
cd "$_name-$_commit"
43
PYTHONPATH=$PWD pytest "${pytest_options[@]}" tests
44
}
45
46
package() {
47
cd "$_name-$_commit"
48
python -m installer --destdir="$pkgdir" dist/*.whl
49
}
50
Scan history
| Scanned at (UTC) | Severity | Rules |
|---|---|---|
| 2026-10-22 05:34:05 | Low | 1 |