aboutsummaryrefslogtreecommitdiffstats
path: root/testing/py3-dt-schema/APKBUILD
blob: 90d16334ac6fba332b1fe60c3d29b1558bb78eec (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.02.1
pkgrel=1
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="6239ba9a6ca66c0d720fc348099106895341a93a3c1d2f810602df232f50e83ac39a6691a6eb081d52a24dd37272ef72071c5bf2dfee1760acab2f37cd63febf  dt-schema-2021.02.1.tar.gz"