blob: 56279473b5d7abc8995059f3e74f990c3e6a5593 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
# Maintainer: jhossbach <julian dot hossbach at gmx dot de>
pkgname=python-lsp-ruff
pkgver=1.5.2
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=('7b11f9675026b788b32cf73452e6e3ea6e7c2924b7cf1129f42e01dc9dac556d')
depends=(python-lsp-server python-ruff 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
}
|