[arch-commits] Commit in python-astor/repos (2 files)

Felix Yan felixonmars at archlinux.org
Fri May 31 08:12:00 UTC 2019


    Date: Friday, May 31, 2019 @ 08:12:00
  Author: felixonmars
Revision: 475865

archrelease: copy trunk to community-testing-any

Added:
  python-astor/repos/community-testing-any/
  python-astor/repos/community-testing-any/PKGBUILD
    (from rev 475864, python-astor/trunk/PKGBUILD)

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

Copied: python-astor/repos/community-testing-any/PKGBUILD (from rev 475864, python-astor/trunk/PKGBUILD)
===================================================================
--- community-testing-any/PKGBUILD	                        (rev 0)
+++ community-testing-any/PKGBUILD	2019-05-31 08:12:00 UTC (rev 475865)
@@ -0,0 +1,30 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=python-astor
+pkgver=0.8
+pkgrel=1
+pkgdesc="Read/rewrite/write Python ASTs"
+arch=('any')
+license=('BSD')
+url="http://astor.rtfd.org/"
+depends=('python')
+makedepends=('python-setuptools')
+checkdepends=('python-nose')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/berkerpeksag/astor/archive/$pkgver.tar.gz")
+sha512sums=('ca787234f9a9caae37633be289d6e980e7b44507d74306ad7a30f017442d6cf423748ef35465b7b5d12bdb84ce4594af801de39882f4c11c732dba4dc65ab667')
+
+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