# Maintainer: Christopher Arndt # Contributor: Simon Conseil pkgname=pip-tools pkgver=7.4.1 pkgrel=1 pkgdesc='A set of tools to keep your pinned Python dependencies fresh' arch=(any) url='https://github.com/jazzband/pip-tools/' license=(BSD-3-Clause) depends=(python python-build 'python-click>=8' 'python-pip>=22.2' python-pyproject-hooks python-setuptools python-wheel) makedepends=(python-installer python-setuptools-scm python-wheel) source=("https://files.pythonhosted.org/packages/source/${pkgname::1}/$pkgname/$pkgname-$pkgver.tar.gz" 'pip-tools-bash-completion.sh' 'pip-tools-zsh-completion.zsh' 'pip-tools-fish-completion.fish') sha256sums=('864826f5073864450e24dbeeb85ce3920cdfb09848a3d69ebf537b521f14bcc9' '12d90c4aab717d58a435610a3cdc94aa925b4f89f9f9f700a05c8cfa058f7960' '63f8d032a742ae33903040477c777922ec06241383d165c93803f1b41316ff51' '9c60407e485e71ded1d695455378fa4f09e76ecb8556d21c31f8610cb47cf525') build() { cd $pkgname-$pkgver python -m build --wheel --no-isolation } package() { cd $pkgname-$pkgver python -m installer --destdir="$pkgdir" dist/*.whl # shell completion install -Dm644 "$srcdir"/pip-tools-bash-completion.sh "$pkgdir"/etc/bash_completion.d/pip-tools install -Dm644 "$srcdir"/pip-tools-zsh-completion.zsh "$pkgdir"/usr/share/zsh/site-functions/_pip-tools install -Dm644 "$srcdir"/pip-tools-fish-completion.fish "$pkgdir"/usr/share/fish/vendor_completions.d/pip-tools.fish # license install -Dm644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname # documentation install -Dm644 CHANGELOG.md CONTRIBUTING.md README.md \ -t "$pkgdir/usr/share/doc/$pkgname" install -Dm644 img/*.svg -t "$pkgdir"/usr/share/doc/$pkgname/img install -Dm644 examples/*.in -t "$pkgdir"/usr/share/doc/$pkgname/examples install -Dm644 examples/readme/* -t "$pkgdir"/usr/share/doc/$pkgname/examples/readme # Suppress warnings from deprecated Python distutils package sed -i -e 's@python$@python -W ignore:Setuptools is replacing distutils.:UserWarning:@' \ "$pkgdir"/usr/bin/pip-compile sed -i -e 's@python$@python -W ignore:Setuptools is replacing distutils.:UserWarning:@' \ "$pkgdir"/usr/bin/pip-sync } # vim:set ts=2 sw=2 et: