[arch-commits] Commit in python-pynitrokey/repos (2 files)

Evangelos Foutras foutrelis at gemini.archlinux.org
Fri Dec 3 01:27:10 UTC 2021


    Date: Friday, December 3, 2021 @ 01:27:09
  Author: foutrelis
Revision: 1064638

archrelease: copy trunk to community-staging-any

Added:
  python-pynitrokey/repos/community-staging-any/
  python-pynitrokey/repos/community-staging-any/PKGBUILD
    (from rev 1064636, python-pynitrokey/trunk/PKGBUILD)

----------+
 PKGBUILD |   35 +++++++++++++++++++++++++++++++++++
 1 file changed, 35 insertions(+)

Copied: python-pynitrokey/repos/community-staging-any/PKGBUILD (from rev 1064636, python-pynitrokey/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2021-12-03 01:27:09 UTC (rev 1064638)
@@ -0,0 +1,35 @@
+# Maintainer: David Runge <dvzrv at archlinux.org>
+
+_name=pynitrokey
+pkgname=python-pynitrokey
+pkgver=0.4.5
+pkgrel=2
+pkgdesc="A command line interface for the Nitrokey FIDO2 and Nitrokey Start"
+arch=('any')
+url="https://github.com/Nitrokey/pynitrokey/releases"
+license=('Apache')
+depends=('python-cbor' 'python-cffi' 'python-click' 'python-cryptography'
+'python-dateutil' 'python-ecdsa' 'python-fido2' 'python-intelhex'
+'python-nkdfu' 'python-pygments' 'python-pyserial' 'python-pyusb'
+'python-requests' 'python-urllib3')
+makedepends=('python-build' 'python-flit' 'python-install')
+source=("https://files.pythonhosted.org/packages/source/${_name::1}/${_name}/${_name}-${pkgver}.tar.gz")
+sha512sums=('8a3f5ad1f13fb9e9e43ee639b0c87839b938efc32fb7bc9574610a0b5e510d4a822a1e93dc9b3c048ff5a56e304714c7c91de3e4e2dfa1802b44c18c6b9c35ba')
+b2sums=('f53c047fe2a582284e3abe465c075e85fc7f0e1a488b83be0ea151b47c7eb01ea8523198ce01e39de980488fa0ad8328d0fe8429e0da82cf6f8cd6f1f857e4e7')
+
+prepare() {
+  mv -v "${_name}-$pkgver" "$pkgname-$pkgver"
+}
+
+build() {
+  cd "$pkgname-$pkgver"
+  python -m build --wheel --skip-dependency-check --no-isolation
+}
+
+package() {
+  cd "$pkgname-$pkgver"
+  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