Package Details: python-backports.shutil_which 3.5.2-2

Git Clone URL: https://aur.archlinux.org/python-backports.shutil_which.git (read-only, click to copy)
Package Base: python-backports.shutil_which
Description: Backport of shutil.which from Python 3.3
Upstream URL: https://github.com/minrk/backports.shutil_which
Licenses: GPL3
Submitter: digital_mystik
Maintainer: digital_mystik
Last Packager: digital_mystik
Votes: 2
Popularity: 0.043513
First Submitted: 2022-02-05 20:04 (UTC)
Last Updated: 2026-01-25 23:26 (UTC)

Latest Comments

groctel commented on 2026-01-24 12:02 (UTC)

Hey! I got a comment in python-backports.cached_property reporting a conflict with your package. After some investigation, I've created a dependency package called python-backports that installes the common backports namespace. I've also adopted python-backports.shutil_get_terminal_size and updated it with the same dependency.

You can use this PKGBUILD to update your package to depend on python-backports, update to the new python build system and add a check step:

#Maintainer digital mystik <echo ZGlnaXRhbF9teXN0aWtAcHJvdG9ubWFpbC5jaAo= | base64 -d>

_name=backports.shutil_which
pkgname=python-backports.shutil_which
pkgver=3.5.2
pkgrel=1
pkgdesc="Backport of shutil.which from Python 3.3"
arch=('any')
url="https://github.com/minrk/backports.shutil_which"
license=("GPL3")
depends=('python' 'python-backports')
makedepends=(
    'python-build'
    'python-installer'
    'python-setuptools'
    'python-setuptools-scm'
    'python-wheel'
)
checkdepends=(
    'python-pytest'
    'python-pytest-mock'
    'python-virtualenv'
)

source=("$pkgname-$pkgver.tar.gz::https://github.com/minrk/$_name/archive/refs/tags/$pkgver.tar.gz")
b2sums=('b78e3ddef7028dcec1f162157c021509582b2a5b8a828a9935349432cca72a2a07e123d907ab99a9c608b126d6dabae4e74adc8e62960e506de7bfb0dfeb2fd9')

prepare() {
    cd "$srcdir/$_name-$pkgver"
    rm backports/__init__.py # Provided by python-backports
}

build() {
    cd "$srcdir/$_name-$pkgver"
    SETUPTOOLS_SCM_PRETEND_VERSION=${pkgver} \
        python -m build --wheel --no-isolation
}

check() {
    cd "$srcdir/$_name-$pkgver"

    python -m venv --system-site-packages venv
    source venv/bin/activate
    pip install ./dist/*.whl
    PYTHONPATH="$PYTHONPATH:." pytest
    rm -rf venv
}

package() {
    cd "$srcdir/$_name-$pkgver"
    python -m installer --destdir="$pkgdir" dist/*.whl
    install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}