python-citeproc-py-styles
LOW
maintainer gesh
0 votes
scanned 2026-09-23 13:40:34.773403
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
3
pkgname='python-citeproc-py-styles'
4
pkgver=0.1.6
5
_pkgver=b6c4ecf2efad340107e3ce0bfe8b83b942e55579
6
pkgrel=1
7
pkgdesc='Supplementary CSL styles for citeproc-py'
8
url='https://github.com/inveniosoftware/citeproc-py-styles'
9
depends=('python' 'python-lxml' 'python-six')
10
checkdepends=('python-pytest')
11
makedepends=(
12
'git'
13
'python-hatchling'
14
'python-build' 'python-installer'
15
)
16
license=('MIT WITH AdditionRef-CERN-waiver')
17
arch=('any')
18
source=("$pkgname::git+${url}.git#commit=$_pkgver")
19
declare -A _submods
20
_submods['citeproc_styles/styles']='csl-styles'
21
_cslStyleVer=872b2c8f6fda7129807cd3e4d695cf75adf3c15e # from .gitmodules
22
_cslStyleUrl=https://github.com/citation-style-language/styles
23
source+=("csl-styles::git+${_cslStyleUrl}.git#commit=$_cslStyleVer")
24
25
sha256sums=('f3f75d765021ccc8f00cf80879f0df2eb010bc3031092f895e00e89a5d3a173e'
26
'2b46c749a9e176651077e8401396a1edfad45ea76f0ab17a628c55c0a0d6f668')
27
28
prepare() {
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
47
build() {
48
cd "$pkgname"
49
python -m build --wheel --no-isolation
50
}
51
52
check() {
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
60
package() {
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) | Severity | Rules |
|---|---|---|
| 2026-09-23 13:40:34 | Low | 1 |