summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 6bca998af66da74941b57840d034a88a83cf0fd2 (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: Atte Lautanala <atte@lautana.la>
# Contributor bageljr <bageljr 897 at protonmail dot com>
# PKGBUILD generated by pipman
# Python package author: Lie Ryan <lie.1296@gmail.com>
pkgname=python-pylsp-rope
_name=${pkgname#python-}
pkgver=0.1.16
pkgrel=1
pkgdesc="Extended refactoring capabilities for Python LSP Server using Rope."
arch=(any)
url="https://github.com/python-rope/pylsp-rope"
license=('MIT')
depends=("python-rope" "python-typing_extensions" "python" "python-lsp-server")
makedepends=("python-pip" "python-build" "python-installer" "python-pytest" "python-wheel")
source=("https://files.pythonhosted.org/packages/source/${_name::1}/$_name/$_name-$pkgver.tar.gz")
sha256sums=('d680b688c60a40257a8842ec808a6e0de1596a47a5300f22aecfdc69555020a7')
build() {
	cd $_name-$pkgver
	python -m build --wheel --no-isolation
}

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