[arch-commits] Commit in python-libcst/trunk (PKGBUILD)

Filipe Laíns ffy00 at archlinux.org
Wed Apr 29 00:39:48 UTC 2020


    Date: Wednesday, April 29, 2020 @ 00:39:47
  Author: ffy00
Revision: 622152

upgpkg: python-libcst 0.3.4-1

Added:
  python-libcst/trunk/PKGBUILD

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

Added: PKGBUILD
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2020-04-29 00:39:47 UTC (rev 622152)
@@ -0,0 +1,41 @@
+# Maintainer: Filipe Laíns (FFY00) <lains at archlinux.org>
+
+_pkgname=LibCST
+pkgname=python-libcst
+pkgver=0.3.4
+pkgrel=1
+pkgdesc="A concrete syntax tree parser and serializer library for Python that preserves many aspects of Python's abstract syntax tree"
+arch=('any')
+url='https://github.com/Instagram/LibCST'
+license=('MIT')
+depends=('python-typing_extensions' 'python-typing_inspect' 'python-yaml')
+makedepends=('python-setuptools')
+checkdepends=('python-pytest-runner' 'python-hypothesis' 'python-isort')
+source=("$pkgname-$pkgver.tar.gz::$url/archive/v$pkgver.tar.gz")
+sha512sums=('9e68bf141fc798fa2b97712e0ed30ad91b609369d783d487a84781eac48c747caa325cf31351b2173d08da5fb027356fd19b063ed43ca6225a38e071f0208496')
+
+prepare() {
+  rm $_pkgname-$pkgver/libcst/{tests/test_fuzz.py,codegen/tests/test_codegen_clean.py}
+}
+
+build() {
+  cd $_pkgname-$pkgver
+
+  python setup.py build
+}
+
+check() {
+  cd $_pkgname-$pkgver
+
+  python setup.py pytest
+}
+
+package() {
+  cd $_pkgname-$pkgver
+
+  python setup.py install --root="$pkgdir" --optimize=1 --skip-build
+
+  install -Dm 644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}
+
+# vim:set ts=2 sw=2 et:



More information about the arch-commits mailing list