Date: Tuesday, June 8, 2021 @ 13:27:24 Author: dvzrv Revision: 959657
archrelease: copy trunk to community-any Added: python-pynitrokey/repos/community-any/PKGBUILD (from rev 959656, python-pynitrokey/trunk/PKGBUILD) Deleted: python-pynitrokey/repos/community-any/PKGBUILD ----------+ PKGBUILD | 82 +++++++++++++++++++++++++++++++------------------------------ 1 file changed, 42 insertions(+), 40 deletions(-) Deleted: PKGBUILD =================================================================== --- PKGBUILD 2021-06-08 13:27:15 UTC (rev 959656) +++ PKGBUILD 2021-06-08 13:27:24 UTC (rev 959657) @@ -1,40 +0,0 @@ -# Maintainer: David Runge <dv...@archlinux.org> - -_name=pynitrokey -pkgname=python-pynitrokey -pkgver=0.4.2 -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-ecdsa' 'python-fido2' 'python-intelhex' 'python-pygments' 'python-pyserial' -'python-pyusb' 'python-requests') -makedepends=('python-dephell' 'python-setuptools') -source=("https://files.pythonhosted.org/packages/source/${_name::1}/${_name}/${_name}-${pkgver}.tar.gz") -sha512sums=('4abd5e660aa63aef2a74449bef6de3388bc299b6645581bb8534046e89659fcbada59c30ffca4b9f922f37eb3bf35624ad78496abe5783be914d349ae34a657d') -b2sums=('497875071c583c3dfbc7689b08d461f48f07e888fc8925074111736b92b05b2a3243fbd3af1b2601a0e7ced1de5dcb7251acad7bc5cae50a778f12e0ecad5bc7') - -prepare() { - mv -v "${_name}-$pkgver" "$pkgname-$pkgver" - cd "$pkgname-$pkgver" - # we don't deal with such strict version constraints - sed -e 's/ == 0.8.1//' -i pyproject.toml - 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}" - 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 959656, python-pynitrokey/trunk/PKGBUILD) =================================================================== --- PKGBUILD (rev 0) +++ PKGBUILD 2021-06-08 13:27:24 UTC (rev 959657) @@ -0,0 +1,42 @@ +# Maintainer: David Runge <dv...@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}" +}