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

Felix Yan felixonmars at archlinux.org
Wed Sep 2 21:11:53 UTC 2020


    Date: Wednesday, September 2, 2020 @ 21:11:53
  Author: felixonmars
Revision: 697080

archrelease: copy trunk to community-any

Added:
  python-asteval/repos/community-any/
  python-asteval/repos/community-any/PKGBUILD
    (from rev 697079, python-asteval/trunk/PKGBUILD)

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

Copied: python-asteval/repos/community-any/PKGBUILD (from rev 697079, python-asteval/trunk/PKGBUILD)
===================================================================
--- community-any/PKGBUILD	                        (rev 0)
+++ community-any/PKGBUILD	2020-09-02 21:11:53 UTC (rev 697080)
@@ -0,0 +1,31 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=python-asteval
+pkgver=0.9.19
+pkgrel=1
+pkgdesc="Minimalistic evaluator of python expression using ast module"
+url="https://github.com/newville/asteval"
+license=('MIT')
+arch=('any')
+depends=('python')
+makedepends=('python-setuptools')
+checkdepends=('python-pytest' 'python-numpy')
+source=("https://github.com/newville/asteval/archive/$pkgver/$pkgname-$pkgver.tar.gz")
+sha512sums=('5d5bd7cca7503f48c433b46996c5d23a7d13164bab8e26d3eb4bd721e7720fd43905dbe9a5eb19cb38fc8296aacf3fc7fa508ff80977ace2ed2eef16e5bbb977')
+
+build() {
+  cd asteval-$pkgver
+  python setup.py build
+}
+
+check() {
+  cd asteval-$pkgver
+  python -m pytest
+}
+
+package() {
+  cd asteval-$pkgver
+  python setup.py install --root="$pkgdir" --optimize=1
+
+  install -Dm644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname/
+}


More information about the arch-commits mailing list