Package Details: python-digikey-api-git r61.10b91ac-1

Git Clone URL: https://aur.archlinux.org/python-digikey-api-git.git (read-only, click to copy)
Package Base: python-digikey-api-git
Description: Python client for Digikey API
Upstream URL: https://github.com/peeter123/digikey-api
Licenses: GPL3
Conflicts: python-digikey-api
Provides: python-digikey-api
Submitter: andrejr
Maintainer: andrejr
Last Packager: andrejr
Votes: 0
Popularity: 0.000000
First Submitted: 2024-05-13 15:51 (UTC)
Last Updated: 2024-05-13 15:51 (UTC)

Latest Comments

taotieren commented on 2024-12-24 14:42 (UTC) (edited on 2024-12-24 14:48 (UTC) by taotieren)

Hi, I am using extra-x86_64-build from devtools to compile, but I get the following error, can I make the following changes. Thank you.

==> 正在创建软件包:python-digikey-api-git r61.10b91ac-2 (2024年12月24日 星期二 22时39分06秒)
==> 警告: 跳过依赖关系检查。
==> 获取源代码...
-> 正在升级 python-digikey-api-git git 仓库...
==> 正在验证 source 文件,使用sha256sums...
python-digikey-api-git ... 已跳过
==> 正在释放源码...
-> 正在创建 python-digikey-api-git git 仓库的活动拷贝...
正克隆到 'python-digikey-api-git'...
完成。
致命错误:无法读取树(10b91ac61458e42f7757fd6c060766b5b9515314)
==> 错误: 创建 python-digikey-api-git git 仓库的活动拷贝失败
# Maintainer: Andrej Radović <r.andrej@gmail.com>
pkgname=python-digikey-api-git
_pkgname=${pkgname%-git}
_name=${_pkgname#python-}
pkgver=r61.10b91ac
pkgrel=1
pkgdesc="Python client for Digikey API"
url="https://github.com/peeter123/digikey-api"
depends=(
    'python'
    'python-requests'
    'python-retrying'
    'python-fake-useragent'
    'python-schematics'
    'python-inflection'
    'python-certauth'
    'python-urllib3'
)
makedepends=('python-build' 'python-installer' 'python-wheel' 'python-setuptools' 'git')
license=('GPL3')
arch=('any')
source=("$pkgname::git+https://github.com/hvraven/digikey-api.git")
sha256sums=('SKIP')
conflicts=('python-digikey-api')
provides=('python-digikey-api')

pkgver() {
    cd "$srcdir/$pkgname"
    (
        set -o pipefail
        git describe --long --abbrev=7 2>/dev/null | sed 's/\([^-]*-g\)/r\1/;s/-/./g' ||
            printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short=7 HEAD)"
    )
}

build() {
    cd "$srcdir/$pkgname"
    python -m build --wheel --no-isolation
}

package() {
    cd "$srcdir/$pkgname"
    python -m installer --destdir="$pkgdir" dist/*.whl
}

andrejr commented on 2024-05-13 15:54 (UTC)

This uses the repo w/ the PR (https://github.com/peeter123/digikey-api/pull/47) to fix Python 3.12 incompatibility. I locked the URL to the specific commit, so the PR author can't change the repo w/ something malicious.