# Maintainer: mutantmonkey pkgname=solo-python pkgver=0.0.28 pkgrel=2 pkgdesc="Tools and Python library for SoloKeys." arch=('any') url="https://github.com/solokeys/solo-python" license=('Apache' 'MIT') depends=('python' 'python-click>=7.0' 'python-cryptography' 'python-ecdsa' 'python-fido2' 'python-intelhex' 'python-pyserial' 'python-pyusb' 'python-requests' 'python-pyscard') makedepends=('python-pip' 'python-flit') source=("https://files.pythonhosted.org/packages/source/s/${pkgname}/${pkgname}-${pkgver}.tar.gz") sha256sums=('f0a136d022e03edbc4907c26eac8bbbad4d65376eebc6e4a2dac3ecb32aa47c1') build() { cd "${srcdir}/${pkgname}-${pkgver}" python -m flit build --format wheel } package() { cd "${srcdir}/${pkgname}-${pkgver}" install -Dm 644 LICENSE-MIT \ "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" pip install -I --no-warn-script-location --isolated --no-deps --compile \ --root="${pkgdir}" dist/${pkgname/-/_}-${pkgver}-py3-none-any.whl }