Date: Tuesday, May 17, 2022 @ 09:43:51 Author: alerque Revision: 1207661
Migrate python-straight.plugin from AUR, upcomming dep of ansible Added: python-straight.plugin/ python-straight.plugin/repos/ python-straight.plugin/trunk/ python-straight.plugin/trunk/PKGBUILD ----------+ PKGBUILD | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) Added: python-straight.plugin/trunk/PKGBUILD =================================================================== --- python-straight.plugin/trunk/PKGBUILD (rev 0) +++ python-straight.plugin/trunk/PKGBUILD 2022-05-17 09:43:51 UTC (rev 1207661) @@ -0,0 +1,33 @@ +# Maintainer: Caleb Maclennan <[email protected]> + +_pipname=straight.plugin +pkgname=python-$_pipname +pkgver=1.5.0 +pkgrel=3 +pkgdesc='A simple namespaced plugin facility' +arch=(any) +url="https://github.com/ironfroggy/$_pipname" +license=(MIT) +depends=(python) +makedepends=(python-{build,installer} + python-setuptools + python-wheel) +_archive="$_pipname-$pkgver" +source=("https://pypi.python.org/packages/source/${_pipname::1}/$_pipname/$_archive.tar.gz") +sha256sums=('818a7641068932ed6436d0af0a3bb77bbbde29df0a7142c8bd1a249e7c2f0d38') + +build() { + cd "$_archive" + python -m build -wn +} + +check() { + cd "$_archive" + PYTHON_PATH=. python tests.py +} + +package() { + cd "$_archive" + python -m installer -d "$pkgdir" dist/*.whl + install -Dm0644 -t "$pkgdir/usr/share/licenses/$pkgname/" LICENSE +}
