# Maintainer: Mark Wagie pkgname=pipgrip pkgver=0.10.9 pkgrel=1 pkgdesc="Lightweight pip dependency resolver with deptree preview functionality based on the PubGrub algorithm" arch=('any') url="https://github.com/ddelange/pipgrip" license=('BSD') depends=('python-anytree' 'python-click' 'python-packaging' 'python-pip' 'python-setuptools' 'python-wheel') makedepends=('python-build' 'python-installer' 'python-setuptools-scm') source=("https://files.pythonhosted.org/packages/source/${pkgname::1}/$pkgname/$pkgname-$pkgver.tar.gz") sha256sums=('9bc0b74b89dc1ed9f05cc6066323d03bcc515cb2a58ca6717fe1c2db30c6b69b') prepare() { cd "$pkgname-$pkgver" # Relax requirements sed -i 's/setuptools_scm<7/setuptools_scm/g' setup.py } build() { cd "$pkgname-$pkgver" python -m build --wheel --no-isolation } package() { cd "$pkgname-$pkgver" python -m installer --destdir="$pkgdir" dist/*.whl install -Dm644 LICENSE -t "$pkgdir/usr/share/licenses/$pkgname/" }