[arch-commits] Commit in python-libcst/repos (community-any community-any/PKGBUILD)

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


    Date: Wednesday, April 29, 2020 @ 00:39:52
  Author: ffy00
Revision: 622153

archrelease: copy trunk to community-any

Added:
  python-libcst/repos/community-any/
  python-libcst/repos/community-any/PKGBUILD
    (from rev 622152, python-libcst/trunk/PKGBUILD)

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

Copied: python-libcst/repos/community-any/PKGBUILD (from rev 622152, python-libcst/trunk/PKGBUILD)
===================================================================
--- community-any/PKGBUILD	                        (rev 0)
+++ community-any/PKGBUILD	2020-04-29 00:39:52 UTC (rev 622153)
@@ -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