python-h5json

LOW
maintainer Universebenzene 0 votes scanned 2026-09-03 15:53:41.931206
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: Astro Benzene <universebenzene at sina dot com>
2
3pkgbase=python-h5json
4_pname=${pkgbase#python-}
5_pyname=hdf5-json
6pkgname=("python-${_pname}" "python-${_pname}-doc")
7pkgver=2.0.0
8pkgrel=1
9pkgdesc="Specification and tools for representing HDF5 in JSON"
10arch=('any')
11url="https://support.hdfgroup.org/documentation/hdf5-json/latest"
12license=('LicenseRef-HDF5')
13makedepends=('python-setuptools'
14 'python-build'
15 'python-installer'
16 'python-sphinx-copybutton'
17 'python-sphinx-book-theme'
18 'python-myst-parser'
19 'python-h5py') # wheel required by new setuptools
20checkdepends=('python-pytest'
21 'python-pytz') # numpy <- h5py
22#source=("https://files.pythonhosted.org/packages/source/${_pyname:0:1}/${_pyname}/${_pyname}-${pkgver}.tar.gz")
23source=("https://github.com/HDFGroup/hdf5-json/archive/refs/tags/v${pkgver}.tar.gz")
24md5sums=('ceb458150ade863a09acf843e474d2cd')
25
26prepare() {
27 cd ${srcdir}/${_pyname}-${pkgver}
28
29 sed -i -e 's:../../src:src:g' -e 's:"..", "..":".":' test/integ/*_test.py
30}
31
32build() {
33 cd ${srcdir}/${_pyname}-${pkgver}
34 python -m build --wheel --no-isolation
35
36 msg "Building Docs"
37 PYTHONPATH="../src" make -C docs html
38}
39
40check() {
41 cd ${srcdir}/${_pyname}-${pkgver}
42
43 mkdir -p test/unit/out test/integ/{h5,json}_out
44 PYTHONPATH="src" pytest || warning "Tests failed" # -vv -l -ra --color=yes -o console_output_style=count # no xdist #
45}
46
47package_python-h5json() {
48 depends=('python>=3.11' 'python-h5py>=3.10' 'python-numpy>=2.0' 'python-jsonschema>=4.4.0' 'python-pytz')
49 optdepends=('python-h5json-doc: Documentation for HDF5-JSON')
50 cd ${srcdir}/${_pyname}-${pkgver}
51
52 install -D -m644 COPYING -t "${pkgdir}/usr/share/licenses/${pkgname}"
53 install -D -m644 README.md -t "${pkgdir}/usr/share/doc/${pkgname}"
54 python -m installer --destdir="${pkgdir}" dist/*.whl
55}
56
57package_python-h5json-doc() {
58 pkgdesc="Documentation for Python HDF5-JSON"
59 cd ${srcdir}/${_pyname}-${pkgver}/docs/_build
60
61 install -D -m644 ../../COPYING -t "${pkgdir}/usr/share/licenses/${pkgname}"
62 install -d -m755 "${pkgdir}/usr/share/doc/${pkgbase}"
63 cp -a html "${pkgdir}/usr/share/doc/${pkgbase}"
64}
65

Scan history

Scanned at (UTC)SeverityRules
2026-09-03 15:53:41 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