[arch-commits] Commit in python-astor/repos (2 files)
Felix Yan
felixonmars at archlinux.org
Thu Jan 9 00:23:27 UTC 2020
Date: Thursday, January 9, 2020 @ 00:23:25
Author: felixonmars
Revision: 550938
archrelease: copy trunk to community-testing-any
Added:
python-astor/repos/community-testing-any/
python-astor/repos/community-testing-any/PKGBUILD
(from rev 550937, python-astor/trunk/PKGBUILD)
----------+
PKGBUILD | 30 ++++++++++++++++++++++++++++++
1 file changed, 30 insertions(+)
Copied: python-astor/repos/community-testing-any/PKGBUILD (from rev 550937, python-astor/trunk/PKGBUILD)
===================================================================
--- community-testing-any/PKGBUILD (rev 0)
+++ community-testing-any/PKGBUILD 2020-01-09 00:23:25 UTC (rev 550938)
@@ -0,0 +1,30 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=python-astor
+pkgver=0.8.1
+pkgrel=1
+pkgdesc="Read/rewrite/write Python ASTs"
+arch=('any')
+license=('BSD')
+url="https://astor.rtfd.org/"
+depends=('python')
+makedepends=('python-setuptools')
+checkdepends=('python-nose' 'python-tests')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/berkerpeksag/astor/archive/$pkgver.tar.gz")
+sha512sums=('8917898e284fb5e5855a05f8e3f1c8925c4128d2a87f67f0334914d4d3c54b53c4f0cadd04d632a7bcaf3438db7edf2d989b07a9576637c0dce6c16e85c60f83')
+
+build() {
+ cd astor-$pkgver
+ python setup.py build
+}
+
+check() {
+ cd astor-$pkgver
+ nosetests3 || warning "https://github.com/berkerpeksag/astor/issues/146"
+}
+
+package() {
+ cd astor-$pkgver
+ python setup.py install --root="$pkgdir" --optimize=1
+ install -D -m644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}
More information about the arch-commits
mailing list