mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-08-06 22:07:19 +02:00
testing/py3-cmsis-pack-manager: new aport
This commit is contained in:
parent
92f25b5d69
commit
4b1dc25503
58
testing/py3-cmsis-pack-manager/APKBUILD
Normal file
58
testing/py3-cmsis-pack-manager/APKBUILD
Normal file
@ -0,0 +1,58 @@
|
|||||||
|
# Contributor: Bart Ribbers <bribbers@disroot.org>
|
||||||
|
# Maintainer: Bart Ribbers <bribbers@disroot.org>
|
||||||
|
pkgname=py3-cmsis-pack-manager
|
||||||
|
pkgver=0.5.1
|
||||||
|
pkgrel=0
|
||||||
|
pkgdesc="Python manager for CMSIS-Pack index and cache with fast Rust backend"
|
||||||
|
url="https://github.com/pyocd/cmsis-pack-manager"
|
||||||
|
# s390x, ppc64le and riscv64 blocked by ring crate
|
||||||
|
arch="all !s390x !ppc64le !riscv64"
|
||||||
|
license="Apache-2.0"
|
||||||
|
depends="
|
||||||
|
py3-appdirs
|
||||||
|
py3-cffi
|
||||||
|
py3-yaml
|
||||||
|
python3
|
||||||
|
"
|
||||||
|
makedepends="
|
||||||
|
cargo
|
||||||
|
py3-gpep517
|
||||||
|
py3-installer
|
||||||
|
py3-maturin
|
||||||
|
py3-wheel
|
||||||
|
"
|
||||||
|
checkdepends="
|
||||||
|
py3-hypothesis
|
||||||
|
py3-jinja2
|
||||||
|
py3-pytest
|
||||||
|
"
|
||||||
|
subpackages="$pkgname-pyc"
|
||||||
|
source="https://pypi.python.org/packages/source/c/cmsis_pack_manager/cmsis_pack_manager-$pkgver.tar.gz"
|
||||||
|
# Required to download Rust crates
|
||||||
|
options="net"
|
||||||
|
builddir="$srcdir/cmsis_pack_manager-$pkgver"
|
||||||
|
|
||||||
|
build() {
|
||||||
|
gpep517 build-wheel \
|
||||||
|
--wheel-dir dist \
|
||||||
|
--output-fd 3 3>&1 >&2
|
||||||
|
}
|
||||||
|
|
||||||
|
check() {
|
||||||
|
# Hack to make the tests not fail to find the package itself
|
||||||
|
mv cmsis_pack_manager cmsis_pack_manager-tmp
|
||||||
|
|
||||||
|
python3 -m venv --system-site-packages testenv
|
||||||
|
testenv/bin/python3 -m installer dist/*.whl
|
||||||
|
testenv/bin/python3 -m pytest
|
||||||
|
|
||||||
|
mv cmsis_pack_manager-tmp cmsis_pack_manager
|
||||||
|
}
|
||||||
|
|
||||||
|
package() {
|
||||||
|
python3 -m installer -d "$pkgdir" dist/*.whl
|
||||||
|
}
|
||||||
|
|
||||||
|
sha512sums="
|
||||||
|
08c95b17c8fe21faf0940ea15b69de4fd5d15adfb6ef2c60cf6b086276bd89251eddbda8ad665fcba2e50b35c86fc3fe7224ef0b9efa6cace76eb3432f359f7b cmsis_pack_manager-0.5.1.tar.gz
|
||||||
|
"
|
Loading…
Reference in New Issue
Block a user