testing/py3-pylink-square: new aport

This commit is contained in:
Bart Ribbers 2023-01-28 21:45:52 +01:00
parent fff3d778c5
commit d148caac91

View File

@ -0,0 +1,46 @@
# Contributor: Bart Ribbers <bribbers@disroot.org>
# Maintainer: Bart Ribbers <bribbers@disroot.org>
pkgname=py3-pylink-square
pkgver=1.0.0
pkgrel=0
pkgdesc="Python interface for SEGGER J-Link"
url="https://github.com/Square/pylink"
arch="noarch"
license="Apache-2.0"
depends="
py3-future
py3-psutil
py3-six
python3
"
makedepends="
py3-gpep517
py3-installer
py3-setuptools
py3-wheel
"
checkdepends="py3-mock"
subpackages="$pkgname-pyc"
source="https://pypi.python.org/packages/source/p/pylink-square/pylink-square-$pkgver.tar.gz"
builddir="$srcdir/pylink-square-$pkgver"
build() {
gpep517 build-wheel \
--wheel-dir dist \
--output-fd 3 3>&1 >&2
}
check() {
python3 -m venv --clear --without-pip --system-site-packages testenv
testenv/bin/python3 -m installer dist/*.whl
testenv/bin/python3 -m unittest discover -k 'not test_cp15_register_write_success and not test_jlink_restarted and not test_set_log_file_success'
}
package() {
python3 -m installer -d "$pkgdir" \
dist/*.whl
}
sha512sums="
22409c78a0bb858b1fc3cf8ed110885c366964af656ad06d3fe969565d91b6491599b7e65979fdee9d9a89a092eb87dad8d9e60101b5f1f4bda3f8a5b3539a77 pylink-square-1.0.0.tar.gz
"