summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorBenjamin Winger2019-08-10 19:57:33 -0400
committerBenjamin Winger2019-08-10 20:01:10 -0400
commitf1046fca3cedd274ae97638b09b1ed4a96d388cf (patch)
treecc5811b9bc199c9bf395671a269a66ef296f3971 /PKGBUILD
downloadaur-f1046fca3cedd274ae97638b09b1ed4a96d388cf.tar.gz
Initial commit
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD27
1 files changed, 27 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..68922b66b6b
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,27 @@
+# Maintainer: Benjamin Winger <bmw@disroot.org>
+
+_pkgname=RestrictedPython
+pkgname=python-restrictedpython
+pkgver=4.0
+pkgrel=1
+pkgdesc="A restricted execution environment for Python to run untrusted code"
+provides=('python-restrictedpython')
+conflicts=('python-restrictedpython')
+arch=(any)
+url="https://github.com/zopefoundation/RestrictedPython"
+license=(ZPL)
+depends=("python")
+makedepends=("python" "python-setuptools")
+checkdepends=("python-pytest" "python-pytest-mock")
+source=("https://github.com/zopefoundation/$_pkgname/archive/$pkgver.tar.gz")
+sha512sums=('551a6976b42e94d9f9e1eb643761108e891a9d8cb920432c4450a37676d2f1375d6ddb7c28787830dabba9f07d846da151d0b02628785d55b253949abb92aadc')
+
+check() {
+ cd "$srcdir/$_pkgname-$pkgver"
+ py.test
+}
+
+package() {
+ cd "$srcdir/$_pkgname-$pkgver"
+ python setup.py install --root $pkgdir
+}