mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-08-05 21:37:15 +02:00
65 lines
1.3 KiB
Plaintext
65 lines
1.3 KiB
Plaintext
# Contributor: Bart Ribbers <bribbers@disroot.org>
|
|
# Maintainer: Bart Ribbers <bribbers@disroot.org>
|
|
pkgname=py3-pynitrokey
|
|
pkgver=0.5.0
|
|
pkgrel=0
|
|
pkgdesc="Python Library for Nitrokey devices"
|
|
url="https://github.com/Nitrokey/pynitrokey"
|
|
# blocked by py3-spsdk
|
|
arch="aarch64 x86_64"
|
|
license="Apache-2.0 AND MIT"
|
|
depends="
|
|
nitrokey-udev-rules
|
|
py3-click
|
|
py3-click-aliases
|
|
py3-cryptography
|
|
py3-dateutil
|
|
py3-ecdsa
|
|
py3-fido2
|
|
py3-frozendict
|
|
py3-intelhex
|
|
py3-libusb1
|
|
py3-nethsm
|
|
py3-nkdfu
|
|
py3-protobuf
|
|
py3-pyserial
|
|
py3-requests
|
|
py3-semver
|
|
py3-spsdk
|
|
py3-tlv8
|
|
py3-tqdm
|
|
py3-typing-extensions
|
|
py3-urllib3
|
|
"
|
|
makedepends="
|
|
py3-flit
|
|
py3-gpep517
|
|
py3-installer
|
|
py3-wheel
|
|
"
|
|
checkdepends="py3-pytest"
|
|
subpackages="$pkgname-pyc"
|
|
source="https://pypi.python.org/packages/source/p/pynitrokey/pynitrokey-$pkgver.tar.gz"
|
|
options="!check" # Are integration tests only
|
|
builddir="$srcdir/pynitrokey-$pkgver"
|
|
|
|
build() {
|
|
gpep517 build-wheel \
|
|
--wheel-dir .dist \
|
|
--output-fd 3 3>&1 >&2
|
|
}
|
|
|
|
check() {
|
|
python3 -m venv --system-site-packages .testenv
|
|
.testenv/bin/python3 -m installer .dist/*.whl
|
|
.testenv/bin/python3 -m pytest
|
|
}
|
|
|
|
package() {
|
|
python3 -m installer -d "$pkgdir" .dist/*.whl
|
|
}
|
|
|
|
sha512sums="
|
|
bb67de48b9fe735a60d57de5829da37061adb8b8685aea48fd343125823de1d0de380044b565265b110b4f95f8706a76ca772cfbd3f387c9d884d408bc3cb7ec pynitrokey-0.5.0.tar.gz
|
|
"
|