[arch-commits] Commit in (4 files)

Bruno Pagani archange at gemini.archlinux.org
Sun Oct 17 15:08:51 UTC 2021


    Date: Sunday, October 17, 2021 @ 15:08:50
  Author: archange
Revision: 1030738

Initial addition of python-lsp-black, superseding python-pyls-black

Added:
  python-lsp-black/
  python-lsp-black/repos/
  python-lsp-black/trunk/
  python-lsp-black/trunk/PKGBUILD

----------+
 PKGBUILD |   30 ++++++++++++++++++++++++++++++
 1 file changed, 30 insertions(+)

Added: python-lsp-black/trunk/PKGBUILD
===================================================================
--- python-lsp-black/trunk/PKGBUILD	                        (rev 0)
+++ python-lsp-black/trunk/PKGBUILD	2021-10-17 15:08:50 UTC (rev 1030738)
@@ -0,0 +1,30 @@
+# Maintainer: Bruno Pagani <archange at archlinux.org>
+
+pkgname=python-lsp-black
+pkgver=1.0.0
+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=('76e23e09e342b572c94b42a9d8c3cf10c3a1b1aed9969bd6817cb085e214432e')
+
+build() {
+  cd ${pkgname}-${pkgver}
+  python setup.py build
+}
+
+check() {
+  cd ${pkgname}-${pkgver}
+  PYTHONPATH="${PWD}/build/lib" pytest -v --color=yes tests --deselect tests/test_plugin.py::test_entry_point
+}
+
+package() {
+  cd ${pkgname}-${pkgver}
+  python setup.py install --root=${pkgdir} --optimize=1 --skip-build
+  install -Dm644 LICENSE -t "${pkgdir}"/usr/share/licenses/${pkgname}/
+}



More information about the arch-commits mailing list