Date: Thursday, April 6, 2023 @ 01:46:10
Author: felixonmars
Revision: 1438024
archrelease: copy trunk to community-staging-x86_64
Added:
python-libcst/repos/community-staging-x86_64/
python-libcst/repos/community-staging-x86_64/PKGBUILD
(from rev 1438023, python-libcst/trunk/PKGBUILD)
----------+
PKGBUILD | 46 ++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 46 insertions(+)
Copied: python-libcst/repos/community-staging-x86_64/PKGBUILD (from rev
1438023, python-libcst/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD (rev 0)
+++ community-staging-x86_64/PKGBUILD 2023-04-06 01:46:10 UTC (rev 1438024)
@@ -0,0 +1,46 @@
+# Maintainer: Filipe LaĆns (FFY00) <[email protected]>
+
+_pkgname=libcst
+pkgname=python-libcst
+pkgver=0.4.9
+pkgrel=3
+pkgdesc="A concrete syntax tree parser and serializer library for Python that
preserves many aspects of Python's abstract syntax tree"
+arch=('x86_64')
+url='https://github.com/Instagram/LibCST'
+license=('MIT')
+depends=('python-typing_extensions' 'python-typing_inspect' 'python-yaml')
+makedepends=('python-setuptools-scm' 'python-setuptools-rust' 'python-isort'
'python-black' 'ufmt')
+checkdepends=('python-hypothesis' 'python-hypothesmith')
+source=("https://pypi.io/packages/source/l/libcst/libcst-$pkgver.tar.gz")
+sha512sums=('f4f6b89ae06b319d8a7ce29e3a2446318b587684adcc80fae32fd4cf4cb3744ef20e11543d38b27622b4b748df1ca4f829d23cf0327f0f4639c93a4fc118c4df')
+
+prepare() {
+ cd $_pkgname-$pkgver
+
+ sed -i 's/subprocess.check_call/subprocess.run/' libcst/codegen/generate.py
+ python -m libcst.codegen.generate all
+
+ rm
libcst/metadata/tests/{test_full_repo_manager,test_type_inference_provider}.py
# need pyre
+}
+
+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: