Date: Sunday, September 19, 2021 @ 20:25:30 Author: dvzrv Revision: 1017769
upgpkg: python-pynitrokey 0.4.4-1: Upgrade to 0.4.4. Switch to python-build/python-install for build and installation to eliminate problems with flit generated setup.py files and setuptools. Modified: python-pynitrokey/trunk/PKGBUILD ----------+ PKGBUILD | 27 ++++++++++----------------- 1 file changed, 10 insertions(+), 17 deletions(-) Modified: PKGBUILD =================================================================== --- PKGBUILD 2021-09-19 20:20:25 UTC (rev 1017768) +++ PKGBUILD 2021-09-19 20:25:30 UTC (rev 1017769) @@ -2,7 +2,7 @@ _name=pynitrokey pkgname=python-pynitrokey -pkgver=0.4.3.1 +pkgver=0.4.4 pkgrel=1 pkgdesc="A command line interface for the Nitrokey FIDO2 and Nitrokey Start" arch=('any') @@ -10,33 +10,26 @@ 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') +'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=('14972c367aa938f11ae928e3353688f7fa819b3ef82f0d5c95c9e75a4fa33db0c973009f11ff079c42eee301e7c510556a257ed30b7e41df44cee43d72d9f449') -b2sums=('aa4c9cf81e6965b9662ed82d5fc369cda3e261460bb66a1ed1ef7b9820942c7d91dd5fdaa5a8b1293943d6bf4599f43fcce759e83a030486a7d27f6a10dd052c') +sha512sums=('ac2c07382287361cd35d3f7b1315ce2356cd1da186a3b40ab2165648a9054e94ece23a56b8b606339c620aac7174ab5f20ff86599215fc4ca8038e7d2e0e4abd') +b2sums=('322c4d6975acfa6a3ed062fd62dbe6de2189e990bd7321b3aaf6229286773e8744e0a49355028a6d7062504849f7fca393645c5688b67eabf29f19364b5d39de') 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 + python -m build --wheel --skip-dependency-check --no-isolation } 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}/" + 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}" }