# Maintainer: jhossbach pkgname=python-lsp-ruff pkgver=2.2.1 pkgrel=1 pkgdesc="python-lsp-server plugin for extensive and fast linting using ruff" arch=(any) license=('MIT') url="https://github.com/python-lsp/python-lsp-ruff" source=("$pkgname-$pkgver.tar.gz::$url/archive/refs/tags/v$pkgver.tar.gz") sha256sums=('4a1ec09e0360c160006caa904ee6ae812babc2c551baa1444c32d3cb2b2f9b32') depends=(python-lsp-server 'python-ruff>=0.2.0' python-cattrs python-lsprotocol python-tomli) makedepends=(python-build python-installer python-wheel) checkdepends=(python-pytest) build() { cd "$pkgname-$pkgver" python -m build --wheel --no-isolation } check(){ cd "$srcdir/$pkgname-$pkgver" # For pytest pytest } package() { cd "$pkgname-$pkgver" python -m installer --destdir="$pkgdir" dist/*.whl }