python-citeproc-py-styles

LOW
maintainer gesh 0 votes scanned 2026-09-23 13:40:34.773403
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: Gesh <gesh@gesh.uni.cx>
2
3pkgname='python-citeproc-py-styles'
4pkgver=0.1.6
5_pkgver=b6c4ecf2efad340107e3ce0bfe8b83b942e55579
6pkgrel=1
7pkgdesc='Supplementary CSL styles for citeproc-py'
8url='https://github.com/inveniosoftware/citeproc-py-styles'
9depends=('python' 'python-lxml' 'python-six')
10checkdepends=('python-pytest')
11makedepends=(
12 'git'
13 'python-hatchling'
14 'python-build' 'python-installer'
15)
16license=('MIT WITH AdditionRef-CERN-waiver')
17arch=('any')
18source=("$pkgname::git+${url}.git#commit=$_pkgver")
19declare -A _submods
20_submods['citeproc_styles/styles']='csl-styles'
21_cslStyleVer=872b2c8f6fda7129807cd3e4d695cf75adf3c15e # from .gitmodules
22_cslStyleUrl=https://github.com/citation-style-language/styles
23source+=("csl-styles::git+${_cslStyleUrl}.git#commit=$_cslStyleVer")
24
25sha256sums=('f3f75d765021ccc8f00cf80879f0df2eb010bc3031092f895e00e89a5d3a173e'
26 '2b46c749a9e176651077e8401396a1edfad45ea76f0ab17a628c55c0a0d6f668')
27
28prepare() {
29 cd "$pkgname"
30
31 if ! sha256sum -c \
32 <<< '33e2b2bffa1ad4686756beefadebd39a377e09e5ab7b03109f393edb698adbc9 .gitmodules'
33 then
34 msg "$pkgname/.gitmodules differs from expectation"
35 msg 'Check it against the submodule list in PKGBUILD'
36 exit 1
37 fi
38
39 git submodule init
40 for _mod in "${_submods[@]}"; do
41 git config submodule."$_mod".url "$srcdir/${_submods[$_mod]}"
42 done
43 # See https://bugs.archlinux.org/task/76255 for why this is safe
44 git -c protocol.file.allow=always submodule update
45}
46
47build() {
48 cd "$pkgname"
49 python -m build --wheel --no-isolation
50}
51
52check() {
53 cd "$pkgname"
54 python -m venv --system-site-packages test-env
55 test-env/bin/python -m installer dist/*.whl
56 test-env/bin/python -m pytest --disable-plugin-autoload \
57 -o addopts='' --doctest-glob="*.rst" --doctest-modules
58}
59
60package() {
61 cd "$pkgname"
62 python -m installer --destdir="$pkgdir" dist/*.whl
63 install -Dm644 LICENSE -t "$pkgdir"/usr/share/licenses/"$pkgname"/
64}
65

Scan history

Scanned at (UTC)SeverityRules
2026-09-23 13:40:34 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