Package Details: solo-python 0.0.30-2

Git Clone URL: https://aur.archlinux.org/solo-python.git (read-only, click to copy)
Package Base: solo-python
Description: Tools and Python library for SoloKeys.
Upstream URL: https://github.com/solokeys/solo-python
Licenses: MIT, Apache
Submitter: mutantmonkey
Maintainer: mutantmonkey
Last Packager: mutantmonkey
Votes: 7
Popularity: 0.007255
First Submitted: 2019-04-01 06:56 (UTC)
Last Updated: 2021-12-17 05:50 (UTC)

Latest Comments

wuxxin commented on 2022-04-25 14:12 (UTC)

hi, i created a new aur package (solo1) with the updated (0.1.1) source from https://github.com/solokeys/solo1-cli

blueman commented on 2022-04-21 19:18 (UTC)

Hello mutantmonkey, can you please update this package as advised by nickray? I think solo1-cli would be a suitable name.

nickray commented on 2022-03-08 12:10 (UTC) (edited on 2022-03-08 12:12 (UTC) by nickray)

Hey, I renamed the repo to https://github.com/solokeys/solo1-cli, the PyPi name to solo1, the binary to solo1 (but solo remains an alias). Version 0.1.1 of solo-python is now a dummy package pulling in solo1.

Ideally, this AUR package would be replaced by one called solo1 (presuming this is mostly used as a CLI, not as a Python library).

mutantmonkey commented on 2021-11-13 21:20 (UTC) (edited on 2021-11-13 21:21 (UTC) by mutantmonkey)

Just to be clear, the pip command in the install function just installs the wheel file that is built using flit in the build function. This is not a binary package.

jonathon commented on 2021-11-13 14:02 (UTC)

I put together a PKGBUILD for solo-python-git that uses the upstream source rather than pip. Have a look, and feel free to adopt any parts that are useful!

fluix commented on 2021-04-09 22:40 (UTC) (edited on 2021-04-09 22:40 (UTC) by fluix)

The issue that @billypilgrim pointer out is because python-solo request the Python package fido2 in version 0.8.1 (fido2~=0.8.1) not the newer 0.9 version.

billypilgrim commented on 2021-04-01 13:42 (UTC)

I'm currently getting the following error every time I try to run the solo program:

Traceback (most recent call last):
  File "/usr/bin/solo", line 5, in <module>
    from solo.cli import solo_cli
  File "/usr/lib/python3.9/site-packages/solo/cli/__init__.py", line 17, in <module>
    from solo.cli.key import key
  File "/usr/lib/python3.9/site-packages/solo/cli/key.py", line 24, in <module>
    import solo.fido2
  File "/usr/lib/python3.9/site-packages/solo/fido2/__init__.py", line 3, in <module>
    import fido2._pyu2f
ModuleNotFoundError: No module named 'fido2._pyu2f'

mutantmonkey commented on 2021-03-27 21:45 (UTC)

@Arlas Updated, thanks for the heads up. It looks like the new python-flit package in community does not install into /usr/bin.

@alium Upstream builds this package using flit (see the upstream Makefile). I understand that additional make dependencies are a concern, but I do not really have the desire or time to maintain a separate build process from upstream. If you have any particular suggestions for how I can better adhere to the Arch packaging guidelines without changing the build process, I'd be happy to adopt them.

alium commented on 2021-03-27 10:53 (UTC) (edited on 2021-03-27 10:53 (UTC) by alium)

hi, consider please switch to archlinux packaging standard, see https://raw.githubusercontent.com/alium/share/master/PKGBUILD

pkgname=solo-python
pkgver=0.0.27
pkgrel=2
pkgdesc="Tools and Python library for SoloKeys."
arch=('any')
url="https://github.com/solokeys/solo-python"
license=('Apache' 'MIT')
depends=('python' 'python-click>=7.0' 'python-cryptography' 'python-ecdsa'
         'python-fido2' 'python-intelhex' 'python-pyserial' 'python-pyusb'
         'python-requests')
makedepends=('fakeroot' 'python-setuptools')
source=("https://files.pythonhosted.org/packages/source/s/${pkgname}/${pkgname}-${pkgver}.tar.gz"
    "https://raw.githubusercontent.com/alium/share/master/solo")
sha256sums=('72a4699eb3b1979d7a2561c538987f868b5e7ee4e4a5b402b8a4d460d3dd6ec7'
            'd4206872009b63693fc0eeec7c82096bff06b58cc938523f1820f46f071a5642')

build() {
  cd $pkgname-$pkgver
  python setup.py build
}

package() {
  cd $pkgname-$pkgver
    python setup.py install --root="${pkgdir}" --optimize=1
  install -m755 -d "${pkgdir}/usr/bin"
  install -m755  "${srcdir}"/solo "${pkgdir}/usr/bin"
}

you can upload solo script just here in AUR

Arlas commented on 2021-03-27 09:20 (UTC) (edited on 2021-03-27 09:21 (UTC) by Arlas)

Hello!

You are using flit in a bash environment. But python-flit is installed in python environment and not in bash.

Can you replace flit build --format wheel with python -m flit build --format wheelmaybe? This worked for me

nickray commented on 2020-05-19 21:36 (UTC)

Hey mutantmonkey, thanks a lot for creating/maintaining this!

  • nickray, SoloKeys

windy commented on 2020-01-10 18:14 (UTC)

Would it be possible to add the changes of pull request #47 as a patch to this PKGBUILD until the issue with fido2 is resolved?

elimik31 commented on 2019-12-16 14:03 (UTC)

Updating to 0.0.20-1 results in the error message

  File "solo/client.py", line 25, in <module>
    from fido2.utils import Timeout
ImportError: cannot import name 'Timeout' from 'fido2.utils' (/usr/lib/python3.8/site-packages/fido2/utils.py)

This is an upstream issue: https://github.com/solokeys/solo-python/issues/49 Here an open PR that should fix it: https://github.com/solokeys/solo-python/pull/47