blob: cb167e5423f9a6c65acafcd109263c5fc00139a4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
|
# Maintainer: Carl Smedstad <carsme@archlinux.org>
pkgname=json-schema-for-humans
pkgver=1.5.1
pkgrel=1
pkgdesc="Quickly generate HTML documentation from a JSON schema"
arch=(any)
url="https://github.com/coveooss/json-schema-for-humans"
license=(Apache-2.0)
depends=(
python
python-click
python-dataclasses-json
python-jinja
python-markdown2
python-pygments
python-pytz
python-requests
python-yaml
)
makedepends=(
python-build
python-installer
python-poetry
python-wheel
)
checkdepends=(
python-beautifulsoup4
python-pytest
)
source=("$url/archive/v$pkgver/$pkgname-$pkgver.tar.gz")
sha256sums=('48745fe3908cbac79944991dc2b5f380610caa4b57df9dbec325264bb31e906b')
build() {
cd $pkgname-$pkgver
python -m build --wheel --no-isolation
}
check() {
cd $pkgname-$pkgver
pytest \
--deselect=tests/cli_test.py::test_config_parameters_with_nonexistent_output_path \
--deselect=tests/cli_test.py::test_nonexistent_output_path
}
package() {
cd $pkgname-$pkgver
python -m installer --destdir="$pkgdir" dist/*.whl
}
|