Package Details: python-mouser 0.1.5-1

Git Clone URL: https://aur.archlinux.org/python-mouser.git (read-only, click to copy)
Package Base: python-mouser
Description: Mouser Python API
Upstream URL: https://github.com/sparkmicro/mouser-api/
Licenses: MIT
Submitter: andrejr
Maintainer: andrejr (GPereira)
Last Packager: andrejr
Votes: 0
Popularity: 0.000000
First Submitted: 2021-09-08 19:58 (UTC)
Last Updated: 2024-05-18 10:54 (UTC)

Latest Comments

BrainDamage commented on 2023-05-25 17:05 (UTC) (edited on 2023-05-25 17:05 (UTC) by BrainDamage)

python-poetry is missing from the build deps, or it'll fail to build in a clean chroot with:

Traceback (most recent call last):
    File "/usr/lib/python3.11/site-packages/pyproject_hooks/_impl.py", line 321, in _call_hook
        raise BackendUnavailable(data.get('traceback', ''))
pyproject_hooks._impl.BackendUnavailable: Traceback (most recent call last):
    File "/usr/lib/python3.11/site-packages/pyproject_hooks/_in_process/_in_process.py", line 77, in _build_backend
        obj = import_module(mod_path)
                    ^^^^^^^^^^^^^^^^^^^^^^^
    File "/usr/lib/python3.11/importlib/__init__.py", line 126, in import_module
        return _bootstrap._gcd_import(name[level:], package, level)
                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    File "<frozen importlib._bootstrap>", line 1206, in _gcd_import
    File "<frozen importlib._bootstrap>", line 1178, in _find_and_load
    File "<frozen importlib._bootstrap>", line 1128, in _find_and_load_unlocked
    File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
    File "<frozen importlib._bootstrap>", line 1206, in _gcd_import
    File "<frozen importlib._bootstrap>", line 1178, in _find_and_load
    File "<frozen importlib._bootstrap>", line 1128, in _find_and_load_unlocked
    File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
    File "<frozen importlib._bootstrap>", line 1206, in _gcd_import
    File "<frozen importlib._bootstrap>", line 1178, in _find_and_load
    File "<frozen importlib._bootstrap>", line 1128, in _find_and_load_unlocked
    File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
    File "<frozen importlib._bootstrap>", line 1206, in _gcd_import
    File "<frozen importlib._bootstrap>", line 1178, in _find_and_load
    File "<frozen importlib._bootstrap>", line 1142, in _find_and_load_unlocked
ModuleNotFoundError: No module named 'poetry'

ERROR Backend 'poetry.core.masonry.api' is not available.

GPereira commented on 2023-05-21 14:12 (UTC)

Maintainer: Andrej Radović r.andrej@gmail.com

pkgname=python-mouser _name=${pkgname#python-} pkgver=0.1.3 pkgrel=1 pkgdesc="Mouser Python API" url="https://github.com/sparkmicro/mouser-api/" depends=( 'python' 'python-click' 'python-requests' ) makedepends=('python-setuptools') license=('MIT') arch=('any') source=("https://files.pythonhosted.org/packages/source/${_name::1}/$_name/$_name-$pkgver.tar.gz") sha256sums=('42e43b17e797bfc2b7a8323585ad8e772a8ba69d58439021635945cc0869cd5f')

build() { cd "$srcdir/$_name-$pkgver" python setup.py build }

package() { cd "$srcdir/$_name-$pkgver" python setup.py install --root="$pkgdir" --optimize=1 }