python-codetiming
MEDIUM
maintainer Smoolak
1 votes
scanned 2026-10-19 09:25:06.082550
Why flagged
This package was orphaned and re-adopted within the last 30 days — a window where ownership transfers can introduce malicious changes.
Triggered rules
Medium
Recently orphaned & re-adopted
orphaned_readopted
This package was orphaned and re-adopted within the last 30 days — a window where ownership transfers can introduce malicious changes.
PKGBUILD
1
# Maintainer: Luis Martinez <luis dot martinez at disroot dot org>
2
# Contributor: Philip Goto <philip.goto@gmail.com>
3
4
pkgname=python-codetiming
5
_pkg="${pkgname#python-}"
6
pkgver=1.3.2
7
pkgrel=1
8
pkgdesc="Flexible, customizable timer for your Python code"
9
license=('MIT')
10
arch=('any')
11
url='https://github.com/realpython/codetiming'
12
depends=('python')
13
makedepends=('python-flit-core' 'python-build' 'python-installer')
14
checkdepends=('python-pytest')
15
changelog=CHANGELOG.md
16
source=("$pkgname-$pkgver.tar.gz::https://files.pythonhosted.org/packages/source/c/$_pkg/$_pkg-$pkgver.tar.gz")
17
sha256sums=('f8a4ed71042a571e9863022573b76036d3efed726f2bb99a3536e56c201da49c')
18
19
build() {
20
cd "$_pkg-$pkgver"
21
python -m build --wheel --no-isolation
22
}
23
24
check() {
25
cd "$_pkg-$pkgver"
26
PYTHONPATH="$PWD" pytest -x
27
}
28
29
package() {
30
cd "$_pkg-$pkgver"
31
PYTHONHASHSEED=0 python -m installer --destdir="$pkgdir/" dist/*.whl
32
install -Dm644 README.md AUTHORS.md -t "$pkgdir/usr/share/doc/$pkgname/"
33
local _site="$(python -c 'import site; print(site.getsitepackages()[0])')"
34
install -d "$pkgdir/usr/share/licenses/$pkgname/"
35
ln -s "$_site/$_pkg-$pkgver.dist-info/LICENSE" "$pkgdir/usr/share/licenses/$pkgname/"
36
}
37
Scan history
| Scanned at (UTC) | Severity | Rules |
|---|---|---|
| 2026-10-19 09:25:06 | Medium | 1 |
| 2026-06-18 16:11:54 | Clean | 0 |