summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 005e5131de43badb63ce2126c2cc4679fe95ced6 (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: Luc Khai Hai <lkh42t@gmail.com>
# Contributer: Wüstengecko <1579756+Wuestengecko@users.noreply.github.com>

pkgname=python-lsp-isort
_name=${pkgname//-/_}
pkgver=0.2.0
pkgrel=1
epoch=1
pkgdesc="isort plugin for the Python LSP Server"
arch=(any)
url="https://github.com/chantera/python-lsp-isort"
license=('MIT')
depends=(python python-lsp-server python-isort)
makedepends=(python-build python-installer python-hatchling)
options=(!strip)
source=("https://files.pythonhosted.org/packages/source/${_name::1}/${_name}/${_name}-${pkgver}.tar.gz")
sha256sums=('79fe15ae71d33ab2a4ee8b7fb4727b434dfb26c7fc264527564056cdc48aa380')

build() {
  cd "$_name-$pkgver"
  python -m build --wheel --no-isolation
}

package() {
  cd "$_name-$pkgver"
  python -m installer --destdir="${pkgdir}" dist/*.whl
  install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}

# vi: sts=2 sw=2 et