[arch-commits] Commit in (4 files)

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


    Date: Wednesday, September 2, 2020 @ 21:11:39
  Author: felixonmars
Revision: 697079

addpkg: python-asteval 0.9.19-1

Added:
  python-asteval/
  python-asteval/repos/
  python-asteval/trunk/
  python-asteval/trunk/PKGBUILD

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

Added: python-asteval/trunk/PKGBUILD
===================================================================
--- python-asteval/trunk/PKGBUILD	                        (rev 0)
+++ python-asteval/trunk/PKGBUILD	2020-09-02 21:11:39 UTC (rev 697079)
@@ -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