mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-07-23 03:05:48 +03:00
27 lines
953 B
Text
27 lines
953 B
Text
# 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"
|