aboutsummaryrefslogtreecommitdiffstats
path: root/testing/py3-dt-schema/APKBUILD
blob: c5e8efca09b33648aceee8e76121d74de83555d4 (plain) (blame)
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
# Contributor: Iskren Chernev <iskren.chernev@gmail.com>
# Maintainer: Iskren Chernev <iskren.chernev@gmail.com>
pkgname=py3-dt-schema
pkgver=2021.07
pkgrel=0
pkgdesc="Devicetree schema tools"
url="https://github.com/devicetree-org/dt-schema"
arch="noarch"
license="BSD-2-Clause"
depends="python3 py3-ruamel.yaml py3-jsonschema py3-rfc3987"
makedepends="py3-setuptools py3-setuptools_scm"
source="dt-schema-$pkgver.tar.gz::https://github.com/devicetree-org/dt-schema/archive/v$pkgver.tar.gz"
builddir="$srcdir/dt-schema-$pkgver"

build() {
	SETUPTOOLS_SCM_PRETEND_VERSION="$pkgver" python3 setup.py build
}

package() {
	SETUPTOOLS_SCM_PRETEND_VERSION="$pkgver" python3 setup.py install --prefix=/usr --root="$pkgdir"
}

check() {
	PYTHONPATH=. python3 test/test-dt-validate.py
}

sha512sums="fd720d03b0365870298844826e8387d2fb8f052287d199a54377fb50a0070c414705f745a3581e74dad99a8c4e3564b5fe6875473dc13b972396e1f6f27e7571  dt-schema-2021.07.tar.gz"