python-h5json
LOW
maintainer Universebenzene
0 votes
scanned 2026-09-03 15:53:41.931206
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
3
pkgbase=python-h5json
4
_pname=${pkgbase#python-}
5
_pyname=hdf5-json
6
pkgname=("python-${_pname}" "python-${_pname}-doc")
7
pkgver=2.0.0
8
pkgrel=1
9
pkgdesc="Specification and tools for representing HDF5 in JSON"
10
arch=('any')
11
url="https://support.hdfgroup.org/documentation/hdf5-json/latest"
12
license=('LicenseRef-HDF5')
13
makedepends=('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
20
checkdepends=('python-pytest'
21
'python-pytz') # numpy <- h5py
22
#source=("https://files.pythonhosted.org/packages/source/${_pyname:0:1}/${_pyname}/${_pyname}-${pkgver}.tar.gz")
23
source=("https://github.com/HDFGroup/hdf5-json/archive/refs/tags/v${pkgver}.tar.gz")
24
md5sums=('ceb458150ade863a09acf843e474d2cd')
25
26
prepare() {
27
cd ${srcdir}/${_pyname}-${pkgver}
28
29
sed -i -e 's:../../src:src:g' -e 's:"..", "..":".":' test/integ/*_test.py
30
}
31
32
build() {
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
40
check() {
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
47
package_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
57
package_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) | Severity | Rules |
|---|---|---|
| 2026-09-03 15:53:41 | Low | 1 |