[arch-commits] Commit in python-pynitrokey/repos (2 files)
David Runge
dvzrv at gemini.archlinux.org
Sun Feb 13 23:54:30 UTC 2022
Date: Sunday, February 13, 2022 @ 23:54:30
Author: dvzrv
Revision: 1133103
archrelease: copy trunk to community-testing-any
Added:
python-pynitrokey/repos/community-testing-any/
python-pynitrokey/repos/community-testing-any/PKGBUILD
(from rev 1133102, python-pynitrokey/trunk/PKGBUILD)
----------+
PKGBUILD | 33 +++++++++++++++++++++++++++++++++
1 file changed, 33 insertions(+)
Copied: python-pynitrokey/repos/community-testing-any/PKGBUILD (from rev 1133102, python-pynitrokey/trunk/PKGBUILD)
===================================================================
--- community-testing-any/PKGBUILD (rev 0)
+++ community-testing-any/PKGBUILD 2022-02-13 23:54:30 UTC (rev 1133103)
@@ -0,0 +1,33 @@
+# Maintainer: David Runge <dvzrv at archlinux.org>
+
+_name=pynitrokey
+pkgname=python-pynitrokey
+pkgver=0.4.16
+pkgrel=2
+pkgdesc="A command line interface for the Nitrokey FIDO2 and Nitrokey Start"
+arch=(any)
+url="https://github.com/Nitrokey/pynitrokey"
+license=(Apache)
+depends=(python-cbor python-cffi python-click python-cryptography
+python-dateutil python-ecdsa python-fido2 python-intelhex python-nkdfu
+python-pyusb python-requests python-spsdk python-tqdm python-urllib3)
+makedepends=(git python-build python-flit python-install)
+source=(
+ "git+https://github.com/nitrokey/pynitrokey#tag=v${pkgver}.nitrokey?signed"
+)
+sha512sums=('SKIP')
+b2sums=('SKIP')
+validpgpkeys=(868184069239FF65DE0BCD7DD9BAE35991DE5B22) # Szczepan Zalega (Nitrokey) <szczepan at nitrokey.com>
+
+build() {
+ cd "${_name}"
+ python -m build --wheel --skip-dependency-check --no-isolation
+}
+
+package() {
+ cd "${_name}"
+ python -m install --optimize=1 --destdir="$pkgdir" dist/*.whl
+ # https://github.com/FFY00/python-install/pull/6
+ chmod +x "$pkgdir"/usr/bin/*
+ install -vDm 644 README.md -t "${pkgdir}/usr/share/doc/${pkgname}"
+}
More information about the arch-commits
mailing list