Date: Sunday, April 9, 2023 @ 18:40:56
Author: felixonmars
Revision: 1443434
archrelease: copy trunk to community-staging-any
Added:
python-lsp-black/repos/community-staging-any/
python-lsp-black/repos/community-staging-any/PKGBUILD
(from rev 1443433, python-lsp-black/trunk/PKGBUILD)
----------+
PKGBUILD | 32 ++++++++++++++++++++++++++++++++
1 file changed, 32 insertions(+)
Copied: python-lsp-black/repos/community-staging-any/PKGBUILD (from rev
1443433, python-lsp-black/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD (rev 0)
+++ community-staging-any/PKGBUILD 2023-04-09 18:40:56 UTC (rev 1443434)
@@ -0,0 +1,32 @@
+# Maintainer: Bruno Pagani <[email protected]>
+
+pkgname=python-lsp-black
+pkgver=1.2.1
+pkgrel=2
+pkgdesc="python-lsp-server plugin that adds support to black autoformatter,
forked from pyls-black"
+arch=(any)
+url="https://github.com/python-lsp/python-lsp-black"
+license=(MIT)
+depends=(python-black python-lsp-server python-toml)
+makedepends=(python-setuptools)
+checkdepends=(python-pytest)
+source=(${url}/archive/v${pkgver}/${pkgname}-${pkgver}.tar.gz)
+sha256sums=('1df12c5d3f6407040dd0020a918ed98b20c1ba68720e662f7c8044ed15f87186')
+
+build() {
+ cd ${pkgname}-${pkgver}
+ python setup.py build
+}
+
+check() {
+ cd ${pkgname}-${pkgver}
+ python -m venv --system-site-packages test-env
+ test-env/bin/python setup.py install --skip-build
+ test-env/bin/python -m pytest -vv --color=yes tests
+}
+
+package() {
+ cd ${pkgname}-${pkgver}
+ python setup.py install --root=${pkgdir} --optimize=1 --skip-build
+ install -Dm644 LICENSE -t "${pkgdir}"/usr/share/licenses/${pkgname}/
+}