python-confection-git

LOW
maintainer zitro 0 votes scanned 2026-09-01 17:48:51.913915
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: zitro <0 at zitro dot id>
2# Contributor: envolution
3# Contributor: Chris Brendel <cdbrendel@gmail.com>
4# shellcheck shell=bash disable=SC2034,SC2154
5
6_origpkgname=confection
7_pkgname=python-"${_origpkgname}"
8pkgname="${_pkgname}"-git
9pkgver=1.3.3.r1.gb3adaf4
10pkgrel=1
11pkgdesc="The sweetest config system for Python (git version)"
12arch=('any') # Pure Python
13url="https://github.com/explosion/confection"
14license=('MIT')
15
16# `typing_extensions` is upstream's only runtime requirement and it is
17# conditioned on `python_version < "3.11"`, so on a current Arch it is no
18# requirement at all. `pydantic` and `srsly` were dependencies of 0.1.5 and are
19# not dependencies of this -- listing them would tie a package to two it no
20# longer imports.
21depends=('python')
22makedepends=('git' 'python-build' 'python-installer' 'python-setuptools' 'python-wheel')
23
24provides=("${_pkgname}=${pkgver}-${pkgrel}")
25conflicts=("${_pkgname}")
26
27source=("${_pkgname}::git+${url}.git")
28sha256sums=('SKIP')
29
30
31pkgver() {
32 cd "${srcdir}/${_pkgname}";
33
34 git describe --long --tags | sed -re 's/^release-v//g;s/([^-]*-g)/r\1/;s/-/./g';
35}
36
37build() {
38 cd "${srcdir}/${_pkgname}";
39
40 # `python setup.py install`, which the AUR package ran, was removed from
41 # setuptools. Upstream declares a `setuptools.build_meta` backend, so the
42 # ordinary PEP 517 path applies.
43 #
44 # Isolation is off because every build requirement is a system package, and a
45 # sandboxed build would fetch them from PyPI instead.
46 python -m build --wheel --no-isolation;
47}
48
49check() {
50 cd "${srcdir}/${_pkgname}";
51
52 local -- staged;
53 staged="$(mktemp -d)";
54 trap 'rm -rf "${staged}"' RETURN;
55
56 python -m installer --destdir="${staged}" dist/*.whl;
57
58 local -- sitedir;
59 sitedir="$(python -c 'import sysconfig; print(sysconfig.get_path("purelib"))')";
60
61 PYTHONPATH="${staged}${sitedir}" python -c 'import confection;';
62}
63
64package() {
65 cd "${srcdir}/${_pkgname}";
66
67 python -m installer --destdir="${pkgdir}" dist/*.whl;
68
69 install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE";
70}
71# vim:set ts=2 sw=2 et:
72

Scan history

Scanned at (UTC)SeverityRules
2026-09-01 17:48:51 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