[arch-commits] Commit in python-pynitrokey/repos/community-any (PKGBUILD PKGBUILD)

David Runge dvzrv at gemini.archlinux.org
Sun Sep 19 20:25:39 UTC 2021


    Date: Sunday, September 19, 2021 @ 20:25:39
  Author: dvzrv
Revision: 1017770

archrelease: copy trunk to community-any

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

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

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2021-09-19 20:25:30 UTC (rev 1017769)
+++ PKGBUILD	2021-09-19 20:25:39 UTC (rev 1017770)
@@ -1,42 +0,0 @@
-# Maintainer: David Runge <dvzrv at archlinux.org>
-
-_name=pynitrokey
-pkgname=python-pynitrokey
-pkgver=0.4.3.1
-pkgrel=1
-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-pygments' 'python-pyserial' 'python-pyusb' 'python-requests'
-'python-urllib3')
-makedepends=('python-dephell' 'python-setuptools')
-source=("https://files.pythonhosted.org/packages/source/${_name::1}/${_name}/${_name}-${pkgver}.tar.gz")
-sha512sums=('14972c367aa938f11ae928e3353688f7fa819b3ef82f0d5c95c9e75a4fa33db0c973009f11ff079c42eee301e7c510556a257ed30b7e41df44cee43d72d9f449')
-b2sums=('aa4c9cf81e6965b9662ed82d5fc369cda3e261460bb66a1ed1ef7b9820942c7d91dd5fdaa5a8b1293943d6bf4599f43fcce759e83a030486a7d27f6a10dd052c')
-
-prepare() {
-  mv -v "${_name}-$pkgver" "$pkgname-$pkgver"
-  cd "$pkgname-$pkgver"
-  # flit creates a weird setup.py, so we use dephell to create one:
-  # https://github.com/Nitrokey/pynitrokey/issues/88
-  dephell deps convert --from pyproject.toml --to setup.py
-}
-
-build() {
-  cd "$pkgname-$pkgver"
-  python setup.py build
-}
-
-package() {
-  local _site_packages=$(python -c "import site; print(site.getsitepackages()[0])")
-  cd "$pkgname-$pkgver"
-  python setup.py install --skip-build \
-                          --optimize=1 \
-                          --root="${pkgdir}"
-  # when using dephell to create the setup.py, it doesn't install the VERSION file, because reasons
-  install -vDm 644 "${_name}/VERSION" "${pkgdir}/${_site_packages}/${_name}/"
-  install -vDm 644 README.md -t "${pkgdir}/usr/share/doc/${pkgname}"
-}

Copied: python-pynitrokey/repos/community-any/PKGBUILD (from rev 1017769, python-pynitrokey/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2021-09-19 20:25:39 UTC (rev 1017770)
@@ -0,0 +1,35 @@
+# Maintainer: David Runge <dvzrv at archlinux.org>
+
+_name=pynitrokey
+pkgname=python-pynitrokey
+pkgver=0.4.4
+pkgrel=1
+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=('ac2c07382287361cd35d3f7b1315ce2356cd1da186a3b40ab2165648a9054e94ece23a56b8b606339c620aac7174ab5f20ff86599215fc4ca8038e7d2e0e4abd')
+b2sums=('322c4d6975acfa6a3ed062fd62dbe6de2189e990bd7321b3aaf6229286773e8744e0a49355028a6d7062504849f7fca393645c5688b67eabf29f19364b5d39de')
+
+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