[arch-commits] Commit in python-libcst/repos (2 files)
Evangelos Foutras
foutrelis at archlinux.org
Mon Nov 9 17:07:44 UTC 2020
Date: Monday, November 9, 2020 @ 17:07:43
Author: foutrelis
Revision: 747780
archrelease: copy trunk to community-staging-any
Added:
python-libcst/repos/community-staging-any/
python-libcst/repos/community-staging-any/PKGBUILD
(from rev 747779, python-libcst/trunk/PKGBUILD)
----------+
PKGBUILD | 37 +++++++++++++++++++++++++++++++++++++
1 file changed, 37 insertions(+)
Copied: python-libcst/repos/community-staging-any/PKGBUILD (from rev 747779, python-libcst/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD (rev 0)
+++ community-staging-any/PKGBUILD 2020-11-09 17:07:43 UTC (rev 747780)
@@ -0,0 +1,37 @@
+# Maintainer: Filipe Laíns (FFY00) <lains at archlinux.org>
+
+_pkgname=LibCST
+pkgname=python-libcst
+pkgver=0.3.13
+pkgrel=2
+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-hypothesis' 'python-hypothesmith' 'python-isort' 'python-black')
+source=("$pkgname-$pkgver.tar.gz::$url/archive/v$pkgver.tar.gz")
+sha512sums=('f4f0a962557a12bf92b806d10ee9c10de04c066fe6f56e59a2664439a79f49b9a98e4420b78321ac0dd49c04a3603f778b2ebbc0597521725421bd512072c2eb')
+
+build() {
+ cd $_pkgname-$pkgver
+
+ python setup.py build
+}
+
+check() {
+ cd $_pkgname-$pkgver
+
+ python -m unittest
+}
+
+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